diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2018-08-28 11:16:43 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-28 11:16:43 -0500 |
| commit | 14a3ac9586f26929b696b9a38afb155d37cef3b0 (patch) | |
| tree | ffe8df776133f2fb29730b58a3eef60e9da40250 /numpy/f2py/f2py2e.py | |
| parent | ac4d4807c5b4b61aae59a656beb1b3feed59386b (diff) | |
| parent | ec7c846cf111114a28e9993fb9335f3c63c97fc7 (diff) | |
| download | numpy-14a3ac9586f26929b696b9a38afb155d37cef3b0.tar.gz | |
Merge pull request #11802 from charris/f2py-console-script
ENH: Use entry_points to install the f2py scripts.
Diffstat (limited to 'numpy/f2py/f2py2e.py')
| -rwxr-xr-x | numpy/f2py/f2py2e.py | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/numpy/f2py/f2py2e.py b/numpy/f2py/f2py2e.py index 254f99966..8750ed0b3 100755 --- a/numpy/f2py/f2py2e.py +++ b/numpy/f2py/f2py2e.py @@ -644,13 +644,25 @@ def main(): from numpy.distutils.system_info import show_all show_all() return + + # Probably outdated options that were not working before 1.16 + if '--g3-numpy' in sys.argv[1:]: + sys.stderr.write("G3 f2py support is not implemented, yet.\\n") + sys.exit(1) + elif '--2e-numeric' in sys.argv[1:]: + sys.argv.remove('--2e-numeric') + elif '--2e-numarray' in sys.argv[1:]: + # Note that this errors becaust the -DNUMARRAY argument is + # not recognized. Just here for back compatibility and the + # error message. + sys.argv.append("-DNUMARRAY") + sys.argv.remove('--2e-numarray') + elif '--2e-numpy' in sys.argv[1:]: + sys.argv.remove('--2e-numpy') + else: + pass + if '-c' in sys.argv[1:]: run_compile() else: run_main(sys.argv[1:]) - -# if __name__ == "__main__": -# main() - - -# EOF |
