Update of /cvsroot/ctypes/ctypes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14398
Modified Files:
setup.py
Log Message:
When run with a debug Python build, build extensions in debug mode (on Windows).
Index: setup.py
===================================================================
RCS file: /cvsroot/ctypes/ctypes/setup.py,v
retrieving revision 1.104
retrieving revision 1.105
diff -C2 -d -r1.104 -r1.105
*** setup.py 21 Sep 2004 14:16:15 -0000 1.104
--- setup.py 14 Oct 2004 13:13:30 -0000 1.105
***************
*** 228,231 ****
--- 228,237 ----
class my_build_ext(build_ext.build_ext):
+ def finalize_options(self):
+ if self.debug is None:
+ import imp
+ self.debug = ('_d.pyd', 'rb', imp.C_EXTENSION) in imp.get_suffixes()
+ build_ext.build_ext.finalize_options(self)
+
# First build a static libffi library, then build the _ctypes extension.
def run(self):
|