[Python-checkins] gh-98745: Allow py.exe launcher to install 3.11 by default and 3.12 on request (GH-98780)

miss-islington webhook-mailer at python.org
Fri Oct 28 05:40:09 EDT 2022


https://github.com/python/cpython/commit/9f01a2793ad1bb6e5b9b36b4d0eee3d44f617430
commit: 9f01a2793ad1bb6e5b9b36b4d0eee3d44f617430
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-10-28T02:40:00-07:00
summary:

gh-98745: Allow py.exe launcher to install 3.11 by default and 3.12 on request (GH-98780)

(cherry picked from commit 25811d9010510d24bbe35acca9da86b064f239c0)

Co-authored-by: Steve Dower <steve.dower at python.org>

files:
A Misc/NEWS.d/next/Windows/2022-10-27-20-30-16.gh-issue-98745.v06p4r.rst
M PC/launcher2.c

diff --git a/Misc/NEWS.d/next/Windows/2022-10-27-20-30-16.gh-issue-98745.v06p4r.rst b/Misc/NEWS.d/next/Windows/2022-10-27-20-30-16.gh-issue-98745.v06p4r.rst
new file mode 100644
index 000000000000..caf73db280f3
--- /dev/null
+++ b/Misc/NEWS.d/next/Windows/2022-10-27-20-30-16.gh-issue-98745.v06p4r.rst
@@ -0,0 +1 @@
+Update :file:`py.exe` launcher to install 3.11 by default and 3.12 on request.
diff --git a/PC/launcher2.c b/PC/launcher2.c
index 1f6f97b82092..b1ad5f066ede 100644
--- a/PC/launcher2.c
+++ b/PC/launcher2.c
@@ -1673,6 +1673,7 @@ struct AppxSearchInfo {
 
 struct AppxSearchInfo APPX_SEARCH[] = {
     // Releases made through the Store
+    { L"PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0", L"3.12", 10 },
     { L"PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0", L"3.11", 10 },
     { L"PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0", L"3.10", 10 },
     { L"PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0", L"3.9", 10 },
@@ -1681,6 +1682,7 @@ struct AppxSearchInfo APPX_SEARCH[] = {
     // Side-loadable releases. Note that the publisher ID changes whenever we
     // renew our code-signing certificate, so the newer ID has a higher
     // priority (lower sortKey)
+    { L"PythonSoftwareFoundation.Python.3.12_3847v3x7pw1km", L"3.12", 11 },
     { L"PythonSoftwareFoundation.Python.3.11_3847v3x7pw1km", L"3.11", 11 },
     { L"PythonSoftwareFoundation.Python.3.11_hd69rhyc2wevp", L"3.11", 12 },
     { L"PythonSoftwareFoundation.Python.3.10_3847v3x7pw1km", L"3.10", 11 },
@@ -1755,7 +1757,8 @@ struct StoreSearchInfo {
 
 
 struct StoreSearchInfo STORE_SEARCH[] = {
-    { L"3", /* 3.10 */ L"9PJPW5LDXLZ5" },
+    { L"3", /* 3.11 */ L"9NRWMJP3717K" },
+    { L"3.12", L"9NCVDN91XZQP" },
     { L"3.11", L"9NRWMJP3717K" },
     { L"3.10", L"9PJPW5LDXLZ5" },
     { L"3.9", L"9P7QFQMJRFP7" },



More information about the Python-checkins mailing list