--- numpy/f2py/setup.py.orig 2013-02-10 00:51:36.000000000 +0400
+++ numpy/f2py/setup.py 2013-03-19 15:27:15.000000000 +0400
@@ -41,7 +41,7 @@
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':
@@ -51,7 +51,7 @@
log.info('Creating %s', target)
f = open(target,'w')
f.write('''\
-#!/usr/bin/env %s
+#!@@MPORTS_PYTHON@@
import os, sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
@@ -75,7 +75,7 @@
sys.stderr.write("Unknown mode: " + repr(mode) + "\\n")
sys.exit(1)
main()
-'''%(os.path.basename(sys.executable)))
+''')
f.close()
return target