https://github.com/python/cpython/commit/7d5970be86729bc301d49c156b0691545a2324d3
commit: 7d5970be86729bc301d49c156b0691545a2324d3
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: zooba <[email protected]>
date: 2026-07-03T08:53:44Z
summary:

[3.14] gh-152919: Ensure nuget.org source exist before python install 
(GH-152919)

(cherry picked from commit 8c35afa221020f58d7d4f0237a999b2b989410fe)

Co-authored-by: Bart van der Braak <[email protected]>

files:
M PCbuild/find_python.bat

diff --git a/PCbuild/find_python.bat b/PCbuild/find_python.bat
index 841d83968c60be8..deec9541cf05593 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%"

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to