Skip to content

Commit 8c35afa

Browse files
authored
gh-152919: Ensure nuget.org source exist before python install (GH-152919)
Ensure `nuget.org` source exist before `python` install
1 parent b706767 commit 8c35afa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

PCbuild/find_python.bat

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@
6767
)
6868
)
6969

70+
@rem ensure nuget.org source exist
71+
@"%_Py_NUGET%" sources add -Name nuget.org -Source https://api.nuget.org/v3/index.json >nul 2>nul
72+
7073
@if not "%_Py_Quiet%"=="1" @echo Installing Python via nuget...
7174
@if not "%_Py_Quiet%"=="1" (
7275
@"%_Py_NUGET%" install pythonx86 -ExcludeVersion -OutputDirectory "%_Py_EXTERNALS_DIR%"

0 commit comments

Comments
 (0)