From 6a1f5318d6eedeb1bec9967b5e371143d4b02381 Mon Sep 17 00:00:00 2001 From: Michael Kleehammer Date: Fri, 28 Sep 2018 14:02:57 -0500 Subject: [PATCH] Change --debug to --windbg This is flag only for development troubleshooting. It is not related to building against a debug version of Python which needs --debug. Closes #465 --- setup.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d8719ed7..5b681089 100755 --- a/setup.py +++ b/setup.py @@ -149,8 +149,11 @@ def get_compiler_settings(version_str): '/wd4191', # casts to PYCFunction which doesn't have the keywords parameter ]) - if '--debug' in sys.argv: - sys.argv.remove('--debug') + if '--windbg' in sys.argv: + # Used only temporarily to add some debugging flags to get better stack traces in + # the debugger. This is not related to building debug versions of Python which use + # "--debug". + sys.argv.remove('--windbg') settings['extra_compile_args'].extend('/Od /Ge /GS /GZ /RTC1 /Wp64 /Yd'.split()) settings['libraries'].append('odbc32')