Handle easy_install being run via -m with no __file__ if done from a

zipfile.
This commit is contained in:
Phillip J. Eby 2006-04-18 04:31:46 +00:00
parent 069159b113
commit 8f925cc050
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
Metadata-Version: 1.0 Metadata-Version: 1.0
Name: setuptools Name: setuptools
Version: 0.7a1dev-r45519 Version: 0.7a1dev-r45521
Summary: Download, build, install, upgrade, and uninstall Python packages -- easily! Summary: Download, build, install, upgrade, and uninstall Python packages -- easily!
Home-page: http://peak.telecommunity.com/DevCenter/setuptools Home-page: http://peak.telecommunity.com/DevCenter/setuptools
Author: Phillip J. Eby Author: Phillip J. Eby

View File

@ -1549,6 +1549,7 @@ def _show_help(self,*args,**kw):
with_ei_usage(lambda: with_ei_usage(lambda:
setup( setup(
script_args = ['-q','easy_install', '-v']+argv, script_args = ['-q','easy_install', '-v']+argv,
script_name = sys.argv[0] or 'easy_install',
distclass=DistributionWithoutHelpCommands, **kw distclass=DistributionWithoutHelpCommands, **kw
) )
) )
@ -1557,4 +1558,3 @@ def _show_help(self,*args,**kw):