[Pyrex] Pyrex build_ext Incompatible with Python 2.4 distutils

Bob Ippolito bob at redivi.com
Wed Dec 29 09:12:00 CET 2004


Python 2.4's distutils changed the call signature of 
build_ext.swig_sources to include an extra extension argument.  It 
looks like this patch to Pyrex 0.9.3 will probably work, but is 
untested:

--- build_ext.py        Fri Apr 30 08:00:46 2004
+++ new-build_ext.py    Wed Dec 29 03:11:19 2004
@@ -32,7 +32,7 @@
        if self.compiler == 'mingw32':
          self.swig_cpp = 1

-  def swig_sources (self, sources):
+  def swig_sources (self, sources, extension=None):
      if not self.extensions:
        return


-bob




More information about the Pyrex mailing list