Skip to content

Commit 0c6540b

Browse files
committed
Allow for a minimum distribute version that is older than the downloaded version
1 parent a656faf commit 0c6540b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

distribute_setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def quote(arg):
4949
args = [quote(arg) for arg in args]
5050
return os.spawnl(os.P_WAIT, sys.executable, *args) == 0
5151

52+
MINIMUM_VERSION = "0.6.28"
5253
DEFAULT_VERSION = "0.6.45"
5354
DEFAULT_URL = "http://pypi.python.org/packages/source/d/distribute/"
5455
SETUPTOOLS_FAKED_VERSION = "0.6c11"
@@ -135,7 +136,7 @@ def _do_download(version, download_base, to_dir, download_delay):
135136
setuptools.bootstrap_install_from = egg
136137

137138

138-
def use_setuptools(version=DEFAULT_VERSION, download_base=DEFAULT_URL,
139+
def use_setuptools(version=MINIMUM_VERSION, download_base=DEFAULT_URL,
139140
to_dir=os.curdir, download_delay=15, no_fake=True):
140141
# making sure we use the absolute path
141142
to_dir = os.path.abspath(to_dir)

0 commit comments

Comments
 (0)