[Python-checkins] r53540 - in sandbox/branches/setuptools-0.6: setuptools.txt setuptools/command/bdist_egg.py
phillip.eby
python-checkins at python.org
Wed Jan 24 16:26:01 CET 2007
Author: phillip.eby
Date: Wed Jan 24 16:26:00 2007
New Revision: 53540
Modified:
sandbox/branches/setuptools-0.6/setuptools.txt
sandbox/branches/setuptools-0.6/setuptools/command/bdist_egg.py
Log:
Fix "eggsecutables" (such as setuptools' own egg) only being runnable
with bash-compatible shells. (backport from trunk)
Modified: sandbox/branches/setuptools-0.6/setuptools.txt
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools.txt (original)
+++ sandbox/branches/setuptools-0.6/setuptools.txt Wed Jan 24 16:26:00 2007
@@ -2603,6 +2603,9 @@
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.
Modified: sandbox/branches/setuptools-0.6/setuptools/command/bdist_egg.py
==============================================================================
--- sandbox/branches/setuptools-0.6/setuptools/command/bdist_egg.py (original)
+++ sandbox/branches/setuptools-0.6/setuptools/command/bdist_egg.py Wed Jan 24 16:26:00 2007
@@ -305,7 +305,7 @@
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())"
More information about the Python-checkins
mailing list