Skip to content

Commit 7d5970b

Browse files
[3.14] gh-152919: Ensure nuget.org source exist before python install (GH-152919)
(cherry picked from commit 8c35afa) Co-authored-by: Bart van der Braak <bartvdbraak@gmail.com>
1 parent 42f81fa commit 7d5970b

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)