diff options
author | xride <xride@FreeBSD.org> | 2006-12-31 02:09:53 +0800 |
---|---|---|
committer | xride <xride@FreeBSD.org> | 2006-12-31 02:09:53 +0800 |
commit | 37b04980a5c1d77e0c783740ea4b2a4b21d0e594 (patch) | |
tree | 8d3d24746b19af442e3ff051e2c0598cbae0dc3b /math | |
parent | 0efa220774b91c41f552c77bb2657fe17a5deed5 (diff) | |
download | freebsd-ports-gnome-37b04980a5c1d77e0c783740ea4b2a4b21d0e594.tar.gz freebsd-ports-gnome-37b04980a5c1d77e0c783740ea4b2a4b21d0e594.tar.zst freebsd-ports-gnome-37b04980a5c1d77e0c783740ea4b2a4b21d0e594.zip |
Fix a run time error, don't append python version to the name of the
executable.
Submitted by: Diane Bruce (maintainer)
Approved by: tmclaught (implicit)
Diffstat (limited to 'math')
-rw-r--r-- | math/py-numpy/files/patch-numpy_f2py_setup.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/math/py-numpy/files/patch-numpy_f2py_setup.py b/math/py-numpy/files/patch-numpy_f2py_setup.py index b8f7b27ec5e1..6398aceafa91 100644 --- a/math/py-numpy/files/patch-numpy_f2py_setup.py +++ b/math/py-numpy/files/patch-numpy_f2py_setup.py @@ -1,6 +1,6 @@ ---- numpy/f2py/setup.py.orig Tue Oct 3 00:35:22 2006 -+++ numpy/f2py/setup.py Sat Dec 9 22:51:47 2006 -@@ -34,8 +34,7 @@ +--- numpy/f2py/setup.py.orig Wed Jul 26 16:04:20 2006 ++++ numpy/f2py/setup.py Sat Nov 18 17:13:33 2006 +@@ -32,14 +32,13 @@ config.add_data_dir('docs') config.add_data_files('src/fortranobject.c', @@ -10,3 +10,10 @@ ) config.make_svn_version_py() + + def generate_f2py_py(build_dir): +- f2py_exe = 'f2py'+os.path.basename(sys.executable)[6:] ++ f2py_exe = 'f2py' + if f2py_exe[-4:]=='.exe': + f2py_exe = f2py_exe[:-4] + '.py' + if 'bdist_wininst' in sys.argv and f2py_exe[-3:] != '.py': |