Skip to content

Commit

Permalink
BUG: Fix generated f2py bootstrap script to work with python 3k.
Browse files Browse the repository at this point in the history
Thanks to Lisandro Dalcin.
  • Loading branch information
charris committed Sep 23, 2010
1 parent 14d8e20 commit 29cccb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions numpy/f2py/setup.py
Expand Up @@ -62,7 +62,7 @@ def generate_f2py_py(build_dir):
except ValueError: pass
os.environ["NO_SCIPY_IMPORT"]="f2py"
if mode=="g3-numpy":
print >> sys.stderr, "G3 f2py support is not implemented, yet."
sys.stderr.write("G3 f2py support is not implemented, yet.\n")
sys.exit(1)
elif mode=="2e-numeric":
from f2py2e import main
Expand All @@ -72,7 +72,7 @@ def generate_f2py_py(build_dir):
elif mode=="2e-numpy":
from numpy.f2py import main
else:
print >> sys.stderr, "Unknown mode:",`mode`
sys.stderr.write("Unknown mode: '%s'\n" % mode)
sys.exit(1)
main()
'''%(os.path.basename(sys.executable)))
Expand Down

0 comments on commit 29cccb6

Please sign in to comment.