From: Bart van der Braak Date: Fri, 3 Jul 2026 08:27:56 +0000 (+0200) Subject: gh-152919: Ensure nuget.org source exist before python install (GH-152919) X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=8c35afa221020f58d7d4f0237a999b2b989410fe;p=thirdparty%2FPython%2Fcpython.git gh-152919: Ensure nuget.org source exist before python install (GH-152919) Ensure `nuget.org` source exist before `python` install --- diff --git a/PCbuild/find_python.bat b/PCbuild/find_python.bat index 841d83968c60..deec9541cf05 100644 --- a/PCbuild/find_python.bat +++ b/PCbuild/find_python.bat @@ -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%"