Commit 7964e7bc authored by agronholm's avatar agronholm

Fixed two bugs in the bootstrapper that prevented use_setuptools() from working

--HG--
branch : distribute
extra : rebase_source : 63a606c73788fce5a09a8a423efd25a9804422d7
parent 5668686f
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment