pkgsrc/math/py-numpy/patches/patch-numpy_distutils_fcompiler_gnu.py
drochner 66fff2d7cc update to 1.6.1
changes: any new features, performance improvements and bug fixes,
Some highlights are:
-Re-introduction of datetime dtype support to deal with dates in arrays.
-A new 16-bit floating point type.
-A new iterator, which improves performance of many functions.
2012-04-17 17:24:41 +00:00

15 lines
616 B
Python

$NetBSD: patch-numpy_distutils_fcompiler_gnu.py,v 1.2 2012/04/17 17:24:41 drochner Exp $
Do not run a shell command when it is "None".
--- numpy/distutils/fcompiler/gnu.py.orig 2011-03-11 05:56:15.000000000 +0000
+++ numpy/distutils/fcompiler/gnu.py
@@ -268,7 +268,7 @@ class Gnu95FCompiler(GnuFCompiler):
def _universal_flags(self, cmd):
"""Return a list of -arch flags for every supported architecture."""
- if not sys.platform == 'darwin':
+ if not sys.platform == 'darwin' or cmd == None:
return []
arch_flags = []
# get arches the C compiler gets.