summaryrefslogtreecommitdiff
path: root/setupinfo.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2012-06-09 19:48:21 +0200
committerStefan Behnel <stefan_ml@behnel.de>2012-06-09 19:48:21 +0200
commita95795917ca532fc673106ff8496df84d8e45d00 (patch)
treeb665ee1a64516e44b42dd8f3d57eef428fc8798b /setupinfo.py
parent99ae44162d4e9bc2954efa04808a77365d5ab0c1 (diff)
downloadpython-lxml-a95795917ca532fc673106ff8496df84d8e45d00.tar.gz
added build option to enable cygdb debugging
Diffstat (limited to 'setupinfo.py')
-rw-r--r--setupinfo.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/setupinfo.py b/setupinfo.py
index accc3fcd..6ca5c7c6 100644
--- a/setupinfo.py
+++ b/setupinfo.py
@@ -131,6 +131,9 @@ def ext_modules(static_include_dirs, static_library_dirs,
runtime_library_dirs = runtime_library_dirs,
libraries = _libraries,
))
+ if CYTHON_INSTALLED and OPTION_WITH_CYTHON_GDB:
+ for ext in result:
+ ext.cython_gdb = True
return result
def find_dependencies(module):
@@ -347,6 +350,7 @@ OPTION_WITHOUT_OBJECTIFY = has_option('without-objectify')
OPTION_WITHOUT_ASSERT = has_option('without-assert')
OPTION_WITHOUT_THREADING = has_option('without-threading')
OPTION_WITHOUT_CYTHON = has_option('without-cython')
+OPTION_WITH_CYTHON_GDB = has_option('cython-gdb')
OPTION_WITH_REFNANNY = has_option('with-refnanny')
if OPTION_WITHOUT_CYTHON:
CYTHON_INSTALLED = False