diff options
| author | Arkadiy Shapkin <arkadiy_s@inbox.ru> | 2014-04-24 08:38:40 +0000 |
|---|---|---|
| committer | Arkadiy Shapkin <arkadiy_s@inbox.ru> | 2014-04-24 08:38:40 +0000 |
| commit | 5b8bc6f83e6c31c2b8737a41578c42771f05f47c (patch) | |
| tree | 77e32c5b18c54bcf78ad485bfaa57fbfd4032e01 /ez_setup.py | |
| parent | 2ad829949a55ebb390c5c94a5672f10f693e7eaf (diff) | |
| download | python-setuptools-git-5b8bc6f83e6c31c2b8737a41578c42771f05f47c.tar.gz | |
Downloading throw proxy fixed http://stackoverflow.com/a/18790045/61505
--HG--
extra : rebase_source : b4dced905dbe7206c15ae35ccdae9c400637efa2
Diffstat (limited to 'ez_setup.py')
| -rw-r--r-- | ez_setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ez_setup.py b/ez_setup.py index 56ba9ae3..7ec1680a 100644 --- a/ez_setup.py +++ b/ez_setup.py @@ -169,7 +169,7 @@ def download_file_powershell(url, target): cmd = [ 'powershell', '-Command', - "(new-object System.Net.WebClient).DownloadFile(%(url)r, %(target)r)" % vars(), + "[System.Net.WebRequest]::DefaultWebProxy.Credentials = [System.Net.CredentialCache]::DefaultCredentials; (new-object System.Net.WebClient).DownloadFile(%(url)r, %(target)r)" % vars(), ] _clean_check(cmd, target) |
