[MacPorts] #21528: python26 2.6.2_4: scripts installed with distutils have incorrect hashbang
#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
#21528: python26 2.6.2_4: scripts installed with distutils have incorrect hashbang ---------------------------------------+------------------------------------ Reporter: dackze+macports@… | Owner: blb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: python | Port: python26 ---------------------------------------+------------------------------------ Changes (by macsforever2000@…): * cc: blb@… (removed) * owner: macports-tickets@… => blb@… -- Ticket URL: <http://trac.macports.org/ticket/21528#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21528: python26 2.6.2_4: scripts installed with distutils have incorrect hashbang ---------------------------------------+------------------------------------ Reporter: dackze+macports@… | Owner: blb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: python | Port: python26 ---------------------------------------+------------------------------------ Comment(by blb@…): I can't reproduce this here; if I run {{{ /opt/local/bin/python2.6 setup.py install --root=/tmp/destroot }}} the dnuos script has a proper shebang line: {{{ #!/opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python import sys import dnuos ... }}} Also, creating a Portfile for dnuos, installing it shows the same shebang; I added the port in r58095 if you want to try that to see what happens. -- Ticket URL: <http://trac.macports.org/ticket/21528#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21528: python26 2.6.2_4: scripts installed with distutils have incorrect hashbang ---------------------------------------+------------------------------------ Reporter: dackze+macports@… | Owner: blb@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Keywords: python | Port: python26 ---------------------------------------+------------------------------------ Comment(by dackze+macports@…): I'm not able to reproduce it now either. I think I may have forgotten to delete the build directory after upgrading python_select to the current version, so it was installing the old busted version anyway. You can mark this as invalid. -- Ticket URL: <http://trac.macports.org/ticket/21528#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#21528: python26 2.6.2_4: scripts installed with distutils have incorrect hashbang ----------------------------------------+----------------------------------- Reporter: dackze+macports@… | Owner: blb@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 1.8.0 Resolution: worksforme | Keywords: python Port: python26 | ----------------------------------------+----------------------------------- Changes (by blb@…): * status: new => closed * resolution: => worksforme Comment: Good to hear it's working, but if you do find how to reproduce it say so here and I'll reopen. -- Ticket URL: <http://trac.macports.org/ticket/21528#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts