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

Skip to content

Commit eb74573

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 db145c7 commit eb74573

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
@@ -1936,6 +1936,7 @@ struct AppxSearchInfo {
19361936

19371937
struct AppxSearchInfo APPX_SEARCH[] = {
19381938
// Releases made through the Store
1939+
{ L"PythonSoftwareFoundation.Python.3.13_qbz5n2kfra8p0", L"3.13", 10 },
19391940
{ L"PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0", L"3.12", 10 },
19401941
{ L"PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0", L"3.11", 10 },
19411942
{ L"PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0", L"3.10", 10 },
@@ -1945,6 +1946,7 @@ struct AppxSearchInfo APPX_SEARCH[] = {
19451946
// Side-loadable releases. Note that the publisher ID changes whenever we
19461947
// renew our code-signing certificate, so the newer ID has a higher
19471948
// priority (lower sortKey)
1949+
{ L"PythonSoftwareFoundation.Python.3.13_3847v3x7pw1km", L"3.13", 11 },
19481950
{ L"PythonSoftwareFoundation.Python.3.12_3847v3x7pw1km", L"3.12", 11 },
19491951
{ L"PythonSoftwareFoundation.Python.3.11_3847v3x7pw1km", L"3.11", 11 },
19501952
{ L"PythonSoftwareFoundation.Python.3.11_hd69rhyc2wevp", L"3.11", 12 },
@@ -2026,7 +2028,8 @@ struct StoreSearchInfo {
20262028

20272029

20282030
struct StoreSearchInfo STORE_SEARCH[] = {
2029-
{ L"3", /* 3.11 */ L"9NRWMJP3717K" },
2031+
{ L"3", /* 3.12 */ L"9NCVDN91XZQP" },
2032+
{ L"3.13", L"9PNRBTZXMB4Z" },
20302033
{ L"3.12", L"9NCVDN91XZQP" },
20312034
{ L"3.11", L"9NRWMJP3717K" },
20322035
{ L"3.10", L"9PJPW5LDXLZ5" },

0 commit comments

Comments
 (0)
0