diff options
author | Matthew Brett <matthew.brett@gmail.com> | 2015-04-29 14:45:17 -0700 |
---|---|---|
committer | Matthew Brett <matthew.brett@gmail.com> | 2015-04-29 14:45:17 -0700 |
commit | 19220c47cf6138b4f42f67b9b4d80f2575e22145 (patch) | |
tree | 718325831733f6b70243e37f5f312ef0cc2738c8 /numpy/f2py/setup.py | |
parent | fee5ec41de8ebb1b0be0b97aab27d8c672d8ea44 (diff) | |
download | numpy-19220c47cf6138b4f42f67b9b4d80f2575e22145.tar.gz |
ENH: add bdist_mpkg, bdist_wininst to binary dists
Add other binary distribution formats to list of build commands that
should generate !python shebang lines.
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 |