From a0adc256b93707a9133265f8eceedc6e82ae0cd3 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Thu, 2 Jul 2026 23:53:07 +0200 Subject: [PATCH] Ensure `nuget.org` source exist before `python` install On certain ARM64 installations of Windows the instantiation of NuGet may not actually add a package source for `nuget.org` --- PCbuild/find_python.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PCbuild/find_python.bat b/PCbuild/find_python.bat index 841d83968c60be..deec9541cf0559 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%"