summaryrefslogtreecommitdiff
path: root/setupinfo.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-02-10 19:04:54 +0100
committerStefan Behnel <stefan_ml@behnel.de>2018-02-10 19:04:54 +0100
commit7e7277b7ce85df9cb1507f3df0068cb52e71ae13 (patch)
tree9458bd0af0a819e2b72a67383d9929b4d8fb77ed /setupinfo.py
parent6e336419f8c3543d6a064558c6af1116d1c064c7 (diff)
downloadpython-lxml-7e7277b7ce85df9cb1507f3df0068cb52e71ae13.tar.gz
Explicitly disable C lines in tracebacks (it's faster and cleaner), but provide a build time option so that users can enable it again if they need it.
Diffstat (limited to 'setupinfo.py')
-rw-r--r--setupinfo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/setupinfo.py b/setupinfo.py
index 8907f72a..313424ff 100644
--- a/setupinfo.py
+++ b/setupinfo.py
@@ -347,9 +347,8 @@ def define_macros():
macros.append(('LXML_UNICODE_STRINGS', '1'))
if OPTION_WITH_COVERAGE:
macros.append(('CYTHON_TRACE_NOGIL', '1'))
- # Explicitly enable showing C lines in tracebacks.
- # There is also a bug in Cython 0.27.[01] that suggests a compile time setting.
- macros.append(('CYTHON_CLINE_IN_TRACEBACK', '1'))
+ # Disable showing C lines in tracebacks, unless explicitly requested.
+ macros.append(('CYTHON_CLINE_IN_TRACEBACK', '1' if OPTION_WITH_CLINES else '0'))
return macros
_ERROR_PRINTED = False
@@ -473,6 +472,7 @@ OPTION_WITH_CYTHON = has_option('with-cython')
OPTION_WITH_CYTHON_GDB = has_option('cython-gdb')
OPTION_WITH_REFNANNY = has_option('with-refnanny')
OPTION_WITH_COVERAGE = has_option('with-coverage')
+OPTION_WITH_CLINES = has_option('with-clines')
if OPTION_WITHOUT_CYTHON:
CYTHON_INSTALLED = False
OPTION_STATIC = staticbuild or has_option('static')