From 29cccb69fd9f4177d06b5e74e719cad11abb014b Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Wed, 22 Sep 2010 19:42:19 -0600 Subject: BUG: Fix generated f2py bootstrap script to work with python 3k. Thanks to Lisandro Dalcin. --- numpy/f2py/setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/f2py/setup.py') diff --git a/numpy/f2py/setup.py b/numpy/f2py/setup.py index 500ab58ec..7d46606f6 100644 --- a/numpy/f2py/setup.py +++ b/numpy/f2py/setup.py @@ -62,7 +62,7 @@ for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]: 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 @@ -72,7 +72,7 @@ elif mode=="2e-numarray": 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))) -- cgit v1.2.1