ports/math/py-numpy/files/patch-numpy_f2py_setup.py
Soeren Straarup 8277bbbb07 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)
2006-12-30 18:09:53 +00:00

19 lines
688 B
Python

--- 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',
- 'src/fortranobject.h',
- 'f2py.1'
+ 'src/fortranobject.h'
)
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':