Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

setuptools mangles Python script shebang line #7

Open
boegel opened this issue Jan 17, 2014 · 1 comment
Open

setuptools mangles Python script shebang line #7

boegel opened this issue Jan 17, 2014 · 1 comment

Comments

@boegel
Copy link
Member

boegel commented Jan 17, 2014

$ head -n 1 $EBROOTVSCMINMYMPIRUN/bin/mympirun
#!/usr/bin/python

This should be /usr/bin/env python instead to make it work with whatever python is available first in $PATH.

see also http://stackoverflow.com/questions/1530702/dont-touch-my-shebang

@boegel
Copy link
Member Author

boegel commented Jan 18, 2014

the --executable option for python setup.py build should help:

$ python setup.py build --executable="/usr/bin/env python"
...
$ head -1 build/scripts-2.6/mympirun.py
#!/usr/bin/env python

but then:

$ python setup.py install --prefix=...
cleanup build
removing 'build' (and everything under it)
cleanup lib/vsc_mympirun.egg-info
removing 'lib/vsc_mympirun.egg-info' (and everything under it)
running install
running build
running build_py
creating build
...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant