]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-152919: Ensure nuget.org source exist before python install (GH-152919)
authorBart van der Braak <bartvdbraak@gmail.com>
Fri, 3 Jul 2026 08:27:56 +0000 (10:27 +0200)
committerGitHub <noreply@github.com>
Fri, 3 Jul 2026 08:27:56 +0000 (09:27 +0100)
Ensure `nuget.org` source exist before `python` install

PCbuild/find_python.bat

index 841d83968c60be8f412721dfa4a862a0fa1c384f..deec9541cf05593340f1d87d29d086bea4e724fa 100644 (file)
@@ -67,6 +67,9 @@
     )
 )
 
+@rem ensure nuget.org source exist
+@"%_Py_NUGET%" sources add -Name nuget.org -Source https://api.nuget.org/v3/index.json >nul 2>nul
+
 @if not "%_Py_Quiet%"=="1" @echo Installing Python via nuget...
 @if not "%_Py_Quiet%"=="1" (
     @"%_Py_NUGET%" install pythonx86 -ExcludeVersion -OutputDirectory "%_Py_EXTERNALS_DIR%"