diff options
author | PJ Eby <distutils-sig@python.org> | 2005-06-04 21:35:13 +0000 |
---|---|---|
committer | PJ Eby <distutils-sig@python.org> | 2005-06-04 21:35:13 +0000 |
commit | 28a6fa31fff4cf5a38894988c4b6bfaf14e40438 (patch) | |
tree | 1f0ea15dcd9be078aad8aae72bf6c7065864aebf /easy_install.py | |
parent | 781c62298da098d2bab1010edd0e773bf314f9dc (diff) | |
download | external_python_setuptools-28a6fa31fff4cf5a38894988c4b6bfaf14e40438.tar.gz external_python_setuptools-28a6fa31fff4cf5a38894988c4b6bfaf14e40438.tar.bz2 external_python_setuptools-28a6fa31fff4cf5a38894988c4b6bfaf14e40438.zip |
Fix a minor problem with -b option, and prep for 0.3a4 release.
--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041035
Diffstat (limited to 'easy_install.py')
-rwxr-xr-x | easy_install.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/easy_install.py b/easy_install.py index 45590b62..7bef0563 100755 --- a/easy_install.py +++ b/easy_install.py @@ -674,10 +674,11 @@ def main(argv, factory=Installer): default=None, help="download/extract/build in DIR; keep the results") (options, args) = parser.parse_args() - try: if not args: parser.error("No urls, filenames, or requirements specified") + elif len(args)>1 and options.tmpdir is not None: + parser.error("Build directory can only be set when using one URL") for spec in args: inst = factory( options.instdir, options.zip_ok, options.multi, options.tmpdir @@ -694,7 +695,6 @@ def main(argv, factory=Installer): print >>sys.stderr,"error:",v sys.exit(1) - if __name__ == '__main__': main(sys.argv[1:]) |