8000 gh-115543: Update py.exe to know about Python 3.13 and to install 3.1… · python/cpython@f0104d2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f0104d2

Browse files
gh-115543: Update py.exe to know about Python 3.13 and to install 3.12 by default (GH-115544)
(cherry picked from commit 6cd18c7) Co-authored-by: Steve Dower <steve.dower@python.org>
1 parent c39baf1 commit f0104d2

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
:ref:`launcher` can now detect Python 3.13 when installed from the Microsoft
2+
Store, and will install Python 3.12 by default when
3+
:envvar:`PYLAUNCHER_ALLOW_INSTALL` is set.

PC/launcher2.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1923,6 +1923,7 @@ struct AppxSearchInfo {
19231923

19241924
struct AppxSearchInfo APPX_SEARCH[] = {
19251925
// Releases made through the Store
1926+
{ L"PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0", L"3.13", 10 },
19261927
{ L"PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0", L"3.12", 10 },
19271928
{ L"PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0", L"3.11", 10 },
19281929
{ L"PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0", L"3.10", 10 },
@@ -1932,6 +1933,7 @@ struct AppxSearchInfo APPX_SEARCH[] = {
19321933
// Side-loadable releases. Note that the publisher ID changes whenever we
19331934
// renew our code-signing certificate, so the newer ID has a higher
19341935
// priority (lower sortKey)
1936+
{ L"PythonSoftwareFoundation.Python.3.13_3847v3x7pw1km", L"3.13", 11 },
19351937
{ L"PythonSoftwareFoundation.Python.3.12_3847v3x7pw1km", L"3.12", 11 },
19361938
{ L"PythonSoftwareFoundation.Python.3.11_3847v3x7pw1km", L"3.11", 11 },
19371939
{ L"PythonSoftwareFoundation.Python.3.11_hd69rhyc2wevp", L"3.11", 12 },
@@ -2012,7 +2014,8 @@ struct StoreSearchInfo {
20122014

20132015

20142016
struct StoreSearchInfo STORE_SEARCH[] = {
2015-
{ L"3", /* 3.11 */ L"9NRWMJP3717K" },
2017+
{ L"3", /* 3.12 */ L"9NCVDN91XZQP" },
2018+
{ L"3.13", L"9PNRBTZXMB4Z" },
20162019
{ L"3.12", L"9NCVDN91XZQP" },
20172020
{ L"3.11", L"9NRWMJP3717K" },
20182021
{ L"3.10", L"9PJPW5LDXLZ5" },

0 commit comments

Comments
 (0)
0