bpo-30450: Adds alternate download approach for nuget.exe (#2737)

* bpo-30450: Adds alternate download approach for nuget.exe

* Whitespace fix.
This commit is contained in:
Steve Dower 2017-07-17 14:55:28 +02:00 committed by GitHub
parent 2c8a5e4c96
commit 588836d3e6
2 changed files with 41 additions and 1 deletions

View file

@ -42,7 +42,8 @@
@echo Downloading nuget...
@rem NB: Must use single quotes around NUGET here, NOT double!
@rem Otherwise, a space in the path would break things
@powershell.exe -Command Invoke-WebRequest %_Py_NUGET_URL% -OutFile '%_Py_NUGET%'
@rem If it fails, retry with any available copy of Python
@powershell.exe -Command Invoke-WebRequest %_Py_NUGET_URL% -OutFile '%_Py_NUGET%' || @py -c "%~dp0\urlretrieve.py" "%_Py_NUGET_URL%" "%_Py_NUGET%"
)
@echo Installing Python via nuget...
@"%_Py_NUGET%" install pythonx86 -ExcludeVersion -OutputDirectory "%_Py_EXTERNALS_DIR%"