summaryrefslogtreecommitdiff
path: root/setuptools/command
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command')
-rw-r--r--setuptools/command/bdist_egg.py4
-rwxr-xr-xsetuptools/command/easy_install.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/command/bdist_egg.py b/setuptools/command/bdist_egg.py
index 552bd7e8..21dcc464 100644
--- a/setuptools/command/bdist_egg.py
+++ b/setuptools/command/bdist_egg.py
@@ -44,7 +44,7 @@ class bdist_egg(Command):
description = "create an \"egg\" distribution"
user_options = [
- ('bdist-dir=', 'd',
+ ('bdist-dir=', 'b',
"temporary directory for creating the distribution"),
('plat-name=', 'p',
"platform name to embed in generated filenames "
@@ -54,7 +54,7 @@ class bdist_egg(Command):
('keep-temp', 'k',
"keep the pseudo-installation tree around after " +
"creating the distribution archive"),
- ('dist-dir=', 'b',
+ ('dist-dir=', 'd',
"directory to put final built distributions in"),
('skip-build', None,
"skip rebuilding everything (for testing/debugging)"),
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 4ac6bac7..aeb8075a 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -419,6 +419,8 @@ class easy_install(Command):
# Anything else, try to extract and build
if os.path.isfile(dist_filename):
unpack_archive(dist_filename, tmpdir, self.unpack_progress)
+ elif os.path.isdir(dist_filename):
+ tmpdir = dist_filename # ugh
# Find the setup.py file
from glob import glob
@@ -436,7 +438,7 @@ class easy_install(Command):
setup_script = setups[0]
self.build_egg(tmpdir, setup_script)
- dist_dir = os.path.join(os.path.dirname(setup_script),'dist')
+ dist_dir = os.path.join(os.path.dirname(setup_script),'dist') # XXX
eggs = []
for egg in glob(os.path.join(dist_dir,'*.egg')):
@@ -447,8 +449,6 @@ class easy_install(Command):
return eggs
-
-
def egg_distribution(self, egg_path):
if os.path.isdir(egg_path):
metadata = PathMetadata(egg_path,os.path.join(egg_path,'EGG-INFO'))