Hi,

This patch is needed for py-numpy to work with Python 2.7.

Before adding this patch, I want to be sure that it works perfectly with Python 
2.6 (and others...).

Are you ok ?

Thanks,

Remi.
Index: Makefile
===================================================================
RCS file: /cvs/openbsd/ports/math/py-numpy/Makefile,v
retrieving revision 1.29
diff -u -p -r1.29 Makefile
--- Makefile    22 Nov 2010 09:30:38 -0000      1.29
+++ Makefile    24 Apr 2011 20:24:50 -0000
@@ -5,7 +5,7 @@ COMMENT=                fast array and numeric program
 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/
Index: patches/patch-numpy_distutils_ccompiler_py
===================================================================
RCS file: patches/patch-numpy_distutils_ccompiler_py
diff -N patches/patch-numpy_distutils_ccompiler_py
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-numpy_distutils_ccompiler_py  24 Apr 2011 20:24:50 -0000
@@ -0,0 +1,25 @@
+$OpenBSD$
+# 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

Reply via email to