add a patch which is needed to build correctly with python 2.7.

ok jasper@, maintainer timed-out.
This commit is contained in:
rpointel 2011-05-01 16:26:10 +00:00
parent 5d26a70b63
commit ecdfe705cc
2 changed files with 27 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.29 2010/11/22 09:30:38 espie Exp $
# $OpenBSD: Makefile,v 1.30 2011/05/01 16:26:10 rpointel Exp $
COMMENT= fast array and numeric programming library for Python
MODPY_EGG_VERSION= 1.3.0
DISTNAME= numpy-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
REVISION = 6
REVISION = 7
CATEGORIES= math devel
HOMEPAGE= http://numpy.scipy.org/

View File

@ -0,0 +1,25 @@
$OpenBSD: patch-numpy_distutils_ccompiler_py,v 1.1 2011/05/01 16:26:10 rpointel Exp $
# Source : http://projects.scipy.org/numpy/changeset/8260
--- numpy/distutils/ccompiler.py.orig Sun Mar 29 13:24:21 2009
+++ numpy/distutils/ccompiler.py Mon Apr 25 00:05:05 2011
@@ -2,15 +2,19 @@
import os
import sys
import new
+from copy import copy
from distutils.ccompiler import *
from distutils import ccompiler
+from distutils.errors import DistutilsExecError, DistutilsModuleError, \
+ DistutilsPlatformError
from distutils.sysconfig import customize_compiler
from distutils.version import LooseVersion
from numpy.distutils import log
from numpy.distutils.exec_command import exec_command
-from numpy.distutils.misc_util import cyg2win32, is_sequence, mingw32, quote_args, msvc_on_amd64
+from numpy.distutils.misc_util import cyg2win32, is_sequence, mingw32, \
+ quote_args, msvc_on_amd64
# hack to set compiler optimizing options. Needs to integrated with something.
import distutils.sysconfig