diff options
Diffstat (limited to 'numpy/f2py/setup.py')
-rw-r--r-- | numpy/f2py/setup.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/f2py/setup.py b/numpy/f2py/setup.py index 87fec9049..9f6e47c1c 100644 --- a/numpy/f2py/setup.py +++ b/numpy/f2py/setup.py @@ -33,11 +33,12 @@ from __version__ import version def _get_f2py_shebang(): """ Return shebang line for f2py script - If we are building an egg or a wheel binary package, then the shebang line + If we are building a binary distribution format, then the shebang line should be ``#!python`` rather than ``#!`` followed by the contents of ``sys.executable``. """ - if set(('bdist_wheel', 'bdist_egg')).intersection(sys.argv): + if set(('bdist_wheel', 'bdist_egg', 'bdist_mpkg', 'bdist_wininst', + 'bdist_rpm')).intersection(sys.argv): return '#!python' return '#!' + sys.executable |