Commit 986a2334 authored by Jason R. Coombs's avatar Jason R. Coombs

Merge pull request #559 from buildout/master

Fix setuptools url and curl wants --location to follow redirects
parents 005cb1dd 3728c541
...@@ -33,7 +33,7 @@ except ImportError: ...@@ -33,7 +33,7 @@ except ImportError:
LATEST = object() LATEST = object()
DEFAULT_VERSION = LATEST DEFAULT_VERSION = LATEST
DEFAULT_URL = "https://pypi.python.org/packages/source/s/setuptools/" DEFAULT_URL = "https://pypi.io/packages/source/s/setuptools/"
DEFAULT_SAVE_DIR = os.curdir DEFAULT_SAVE_DIR = os.curdir
...@@ -253,7 +253,7 @@ download_file_powershell.viable = has_powershell ...@@ -253,7 +253,7 @@ download_file_powershell.viable = has_powershell
def download_file_curl(url, target): def download_file_curl(url, target):
cmd = ['curl', url, '--silent', '--output', target] cmd = ['curl', url, '--location', '--silent', '--output', target]
_clean_check(cmd, target) _clean_check(cmd, target)
......
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