mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
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:
parent
2c8a5e4c96
commit
588836d3e6
2 changed files with 41 additions and 1 deletions
|
|
@ -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%"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue