Commit 032f6e80 authored by Daniel Stutzbach's avatar Daniel Stutzbach

Fix for Issue 64: setup.py rebuilds the distribute egg every.single.time.

--HG--
branch : distribute
extra : rebase_source : 2fe261e4ebf0fef8bb38e0d8fc9965b24cc02002
parent 6529a376
...@@ -46,7 +46,7 @@ except ImportError: ...@@ -46,7 +46,7 @@ except ImportError:
args = [quote(arg) for arg in args] args = [quote(arg) for arg in args]
return os.spawnl(os.P_WAIT, sys.executable, *args) == 0 return os.spawnl(os.P_WAIT, sys.executable, *args) == 0
DEFAULT_VERSION = "0.6.7" DEFAULT_VERSION = "0.6.6"
DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/" DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/"
SETUPTOOLS_PKG_INFO = """\ SETUPTOOLS_PKG_INFO = """\
Metadata-Version: 1.0 Metadata-Version: 1.0
...@@ -115,6 +115,9 @@ def _build_egg(tarball, to_dir): ...@@ -115,6 +115,9 @@ def _build_egg(tarball, to_dir):
def _do_download(version, download_base, to_dir, download_delay): def _do_download(version, download_base, to_dir, download_delay):
egg = 'distribute-%s-py%d.%d.egg' % (version, sys.version_info[0],
sys.version_info[1])
if not os.path.exists(egg):
tarball = download_setuptools(version, download_base, tarball = download_setuptools(version, download_base,
to_dir, download_delay) to_dir, download_delay)
egg = _build_egg(tarball, to_dir) egg = _build_egg(tarball, to_dir)
......
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