diff options
author | PJ Eby <distutils-sig@python.org> | 2006-09-22 00:09:06 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2006-09-22 00:09:06 +0000 |
commit | ae347c1ed3e39fb2c00b8b9fc8aedcf507313c20 (patch) | |
tree | 2d8a9c2f40a70b768050625aa200b49d3325ebd2 /setuptools/command/easy_install.py | |
parent | 4ef57c26cbeee3f3afd21f86877bbdcadf0f69c1 (diff) | |
download | external_python_setuptools-ae347c1ed3e39fb2c00b8b9fc8aedcf507313c20.tar.gz external_python_setuptools-ae347c1ed3e39fb2c00b8b9fc8aedcf507313c20.tar.bz2 external_python_setuptools-ae347c1ed3e39fb2c00b8b9fc8aedcf507313c20.zip |
Add support for "eggsecutable" headers: a /bin/sh script that is prepended
to an .egg file to allow it to be run as a script on Unix-ish platforms.
(This is mainly so that setuptools itself can have a single-file installer
on Unix, without doing multiple downloads, dealing with firewalls, etc.)
(Backport from trunk)
--HG--
branch : setuptools-0.6
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/branches/setuptools-0.6%4051969
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index 147dfc43..b049ce58 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -1550,10 +1550,10 @@ def rmtree(path, ignore_errors=False, onerror=auto_chmod): except os.error: onerror(os.rmdir, path, sys.exc_info()) - - - - +def bootstrap(): + # This function is called when setuptools*.egg is run using /bin/sh + import setuptools; argv0 = os.path.dirname(setuptools.__path__[0]) + sys.argv[0] = argv0; sys.argv.append(argv0); main() def main(argv=None, **kw): |