#21528: python26 2.6.2_4: scripts installed with distutils have incorrect hashbang ---------------------------------------+------------------------------------ Reporter: dackze+macports@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: python | Port: python26 ---------------------------------------+------------------------------------ Scripts installed using `setup.py install` incorrectly have a hashbang of `#!/usr/bin/python`: {{{ $ which python /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python $ python_select -s python26 $ head -1 scripts/dnuos #!/usr/bin/env python $ sudo python setup.py install running install running build running build_py copying dnuos/locale/fr/LC_MESSAGES/dnuos.mo -> build/lib/dnuos/locale/fr/LC_MESSAGES running build_scripts running build_mo running install_lib creating /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/dnuos [...] running install_scripts copying build/scripts-2.6/dnuos -> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin changing mode of /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/dnuos to 755 running install_egg_info Writing /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6 /site-packages/dnuos-1.0.10-py2.6.egg-info $ head -1 `which dnuos` #!/usr/bin/python }}} The hashbang should read `#!/opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python`. I'm not sure if this affects other Python ports. -- Ticket URL: <http://trac.macports.org/ticket/21528> MacPorts <http://www.macports.org/> Ports system for Mac OS