Fix build of python ports with py-setuptools when devel/pyrex is

installed.  This fix is already included in the next version of
py-setuptools.

Help from Will Maier
ok djm@ naddy@
This commit is contained in:
merdely 2008-02-29 17:19:05 +00:00
parent 44782d340c
commit 31fca52b6d
2 changed files with 14 additions and 2 deletions

View File

@ -1,9 +1,9 @@
# $OpenBSD: Makefile,v 1.6 2008/01/13 20:51:24 martynas Exp $
# $OpenBSD: Makefile,v 1.7 2008/02/29 17:19:05 merdely Exp $
COMMENT= simplified packaging system for Python modules
DISTNAME= setuptools-0.6c7
PKGNAME= py-${DISTNAME}
PKGNAME= py-${DISTNAME}p0
CATEGORIES= devel
PKG_ARCH= *

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-setuptools_command_build_ext_py,v 1.1 2008/02/29 17:19:05 merdely Exp $
--- setuptools/command/build_ext.py.orig Thu Feb 28 17:28:13 2008
+++ setuptools/command/build_ext.py Thu Feb 28 17:28:33 2008
@@ -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