[Lxml-checkins] r33827 - lxml/trunk

scoder at codespeak.net scoder at codespeak.net
Sat Oct 28 11:01:19 CEST 2006


Author: scoder
Date: Sat Oct 28 11:01:16 2006
New Revision: 33827

Modified:
   lxml/trunk/setup.py
Log:
support --debug option in setup.py to pass -g2 to gcc

Modified: lxml/trunk/setup.py
==============================================================================
--- lxml/trunk/setup.py	(original)
+++ lxml/trunk/setup.py	Sat Oct 28 11:01:16 2006
@@ -137,6 +137,10 @@
 except ValueError:
     pass
 
+if '--debug' in sys.argv:
+    sys.argv.remove('--debug')
+    cflags.append('-g2')
+
 ext_modules = []
 
 for module, package in EXT_MODULES:


More information about the lxml-checkins mailing list