diff options
author | Steve Dower <steve.dower@microsoft.com> | 2017-07-17 12:55:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-17 12:55:28 (GMT) |
commit | 588836d3e646c2bcb3473cda7c5f6a1e0ff2c2e9 (patch) | |
tree | 7cc11bcc8f53d5c8da207036602514bbe0ad30aa /PCbuild/find_python.bat | |
parent | 2c8a5e4c968217f9672340e520942c4ed788d8de (diff) | |
download | cpython-588836d3e646c2bcb3473cda7c5f6a1e0ff2c2e9.zip cpython-588836d3e646c2bcb3473cda7c5f6a1e0ff2c2e9.tar.gz cpython-588836d3e646c2bcb3473cda7c5f6a1e0ff2c2e9.tar.bz2 |
bpo-30450: Adds alternate download approach for nuget.exe (#2737)
* bpo-30450: Adds alternate download approach for nuget.exe
* Whitespace fix.
Diffstat (limited to 'PCbuild/find_python.bat')
-rw-r--r-- | PCbuild/find_python.bat | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/PCbuild/find_python.bat b/PCbuild/find_python.bat index 4629c61..82358c8 100644 --- a/PCbuild/find_python.bat +++ b/PCbuild/find_python.bat @@ -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%" |