Commit ba006a1c authored by PJ Eby's avatar PJ Eby

Fix "eggsecutables" (such as setuptools' own egg) only being runnable

with bash-compatible shells.  (backport from trunk)

--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4053540
parent a47edc63
......@@ -2603,6 +2603,9 @@ Release Notes/Change History
0.6c6
* Fix not building binary RPMs correctly.
* Fix "eggsecutables" (such as setuptools' own egg) only being runnable with
bash-compatible shells.
0.6c5
* Fix uploaded ``bdist_rpm`` packages being described as ``bdist_egg``
packages under Python versions less than 2.5.
......
......@@ -305,7 +305,7 @@ class bdist_egg(Command):
header = (
"#!/bin/sh\n"
'if [[ `basename $0` = "%(basename)s" ]]\n'
'if [ `basename $0` = "%(basename)s" ]\n'
'then exec python%(pyver)s -c "'
"import sys, os; sys.path.insert(0, os.path.abspath('$0')); "
"from %(pkg)s import %(base)s; sys.exit(%(full)s())"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment