summaryrefslogtreecommitdiff
path: root/distribute_setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'distribute_setup.py')
-rw-r--r--distribute_setup.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/distribute_setup.py b/distribute_setup.py
index e54b0ca0..44fe35a4 100644
--- a/distribute_setup.py
+++ b/distribute_setup.py
@@ -102,12 +102,12 @@ def _build_egg(tarball, to_dir=os.curdir):
# building an egg
log.warn('Building a Distribute egg in %s', to_dir)
- python_cmd('setup.py -q bdist_egg --dist-dir %s' % to_dir)
+ python_cmd('setup.py', '-q', 'bdist_egg', '--dist-dir', to_dir)
# returning the result
for file in os.listdir(to_dir):
if fnmatch.fnmatch(file, 'distribute-%s*.egg' % DEFAULT_VERSION):
- return os.path.join(to_dir, file)
+ return os.path.join(subdir, file)
raise IOError('Could not build the egg.')
finally: