From ce75692a87b83cef9ea539fc76f4a544b1398b35 Mon Sep 17 00:00:00 2001 From: PJ Eby Date: Tue, 15 Jan 2008 17:53:54 +0000 Subject: Update Pyrex/swig_sources workaround for newer Pyrex versions (backport) --HG-- branch : setuptools-0.6 extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4059983 --- setuptools/command/build_ext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'setuptools/command/build_ext.py') diff --git a/setuptools/command/build_ext.py b/setuptools/command/build_ext.py index a4b9047e..c9ae4d7d 100644 --- a/setuptools/command/build_ext.py +++ b/setuptools/command/build_ext.py @@ -70,7 +70,7 @@ class build_ext(_build_ext): 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 -- cgit v1.2.3