[Python-checkins] r59982 - sandbox/trunk/setuptools/setuptools/command/build_ext.py

phillip.eby python-checkins at python.org
Tue Jan 15 18:52:23 CET 2008


Author: phillip.eby
Date: Tue Jan 15 18:52:23 2008
New Revision: 59982

Modified:
   sandbox/trunk/setuptools/setuptools/command/build_ext.py
Log:
Update Pyrex/swig_sources workaround for newer Pyrex versions


Modified: sandbox/trunk/setuptools/setuptools/command/build_ext.py
==============================================================================
--- sandbox/trunk/setuptools/setuptools/command/build_ext.py	(original)
+++ sandbox/trunk/setuptools/setuptools/command/build_ext.py	Tue Jan 15 18:52:23 2008
@@ -70,7 +70,7 @@
                 self.write_stub(package_dir or os.curdir, ext, True)
 
 
-    if _build_ext is not _du_build_ext:
+    if _build_ext is not _du_build_ext and not hasattr(_build_ext,'pyrex_sources'):
         # Workaround for problems using some Pyrex versions w/SWIG and/or 2.4
         def swig_sources(self, sources, *otherargs):
             # first do any Pyrex processing


More information about the Python-checkins mailing list