Skip to content

Commit

Permalink
BUG: revert use of !python for bdist_mpkg scripts
Browse files Browse the repository at this point in the history
bdist_mpkg is a very crude install method that will assume the path to
Python, so we should not use the `#!python` form when installing scripts
in bdist_mpkg.
  • Loading branch information
matthew-brett committed May 5, 2015
1 parent 09e38f9 commit 2bc2676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/f2py/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _get_f2py_shebang():
should be ``#!python`` rather than ``#!`` followed by the contents of
``sys.executable``.
"""
if set(('bdist_wheel', 'bdist_egg', 'bdist_mpkg', 'bdist_wininst',
if set(('bdist_wheel', 'bdist_egg', 'bdist_wininst',
'bdist_rpm')).intersection(sys.argv):
return '#!python'
return '#!' + sys.executable
Expand Down

0 comments on commit 2bc2676

Please sign in to comment.