Skip to content

Commit 9f01a27

Browse files
gh-98745: Allow py.exe launcher to install 3.11 by default and 3.12 on request (GH-98780)
(cherry picked from commit 25811d9) Co-authored-by: Steve Dower <[email protected]>
1 parent c5f3f29 commit 9f01a27

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update :file:`py.exe` launcher to install 3.11 by default and 3.12 on request.

PC/launcher2.c

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

16741674
struct AppxSearchInfo APPX_SEARCH[] = {
16751675
// Releases made through the Store
1676+
{ L"PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0", L"3.12", 10 },
16761677
{ L"PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0", L"3.11", 10 },
16771678
{ L"PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0", L"3.10", 10 },
16781679
{ L"PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0", L"3.9", 10 },
@@ -1681,6 +1682,7 @@ struct AppxSearchInfo APPX_SEARCH[] = {
16811682
// Side-loadable releases. Note that the publisher ID changes whenever we
16821683
// renew our code-signing certificate, so the newer ID has a higher
16831684
// priority (lower sortKey)
1685+
{ L"PythonSoftwareFoundation.Python.3.12_3847v3x7pw1km", L"3.12", 11 },
16841686
{ L"PythonSoftwareFoundation.Python.3.11_3847v3x7pw1km", L"3.11", 11 },
16851687
{ L"PythonSoftwareFoundation.Python.3.11_hd69rhyc2wevp", L"3.11", 12 },
16861688
{ L"PythonSoftwareFoundation.Python.3.10_3847v3x7pw1km", L"3.10", 11 },
@@ -1755,7 +1757,8 @@ struct StoreSearchInfo {
17551757

17561758

17571759
struct StoreSearchInfo STORE_SEARCH[] = {
1758-
{ L"3", /* 3.10 */ L"9PJPW5LDXLZ5" },
1760+
{ L"3", /* 3.11 */ L"9NRWMJP3717K" },
1761+
{ L"3.12", L"9NCVDN91XZQP" },
17591762
{ L"3.11", L"9NRWMJP3717K" },
17601763
{ L"3.10", L"9PJPW5LDXLZ5" },
17611764
{ L"3.9", L"9P7QFQMJRFP7" },

0 commit comments

Comments
 (0)