Repository navigation
Closed
Labels
Description
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = 'https://github.com/zooba'
closed_at = <Date 2019-09-12.17:19:24.494>
created_at = <Date 2019-09-12.11:05:13.950>
labels = ['type-bug', '3.8', '3.9', 'OS-windows']
title = 'py.exe cannot locate Store package'
updated_at = <Date 2019-10-14.22:52:51.997>
user = 'https://github.com/zooba'bugs.python.org fields:
activity = <Date 2019-10-14.22:52:51.997>
actor = 'miss-islington'
assignee = 'steve.dower'
closed = True
closed_date = <Date 2019-09-12.17:19:24.494>
closer = 'steve.dower'
components = ['Windows']
creation = <Date 2019-09-12.11:05:13.950>
creator = 'steve.dower'
dependencies = []
files = []
hgrepos = []
issue_num = 38133
keywords = ['patch']
message_count = 9.0
messages = ['352107', '352112', '352121', '352137', '352143', '352218', '352220', '354675', '354676']
nosy_count = 6.0
nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'eryksun', 'steve.dower', 'miss-islington']
pr_nums = ['16025', '16073', '16791', '16798']
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue38133'
versions = ['Python 3.8', 'Python 3.9']
Activity
zooba commentedon Sep 12, 2019
The py.exe launcher cannot locate installations from the Store (unless you have no other installations on your machine, which is unlikely).
zooba commentedon Sep 12, 2019
I added an "exe_display" override for listing paths, since the full path to the store app is not supposed to be used by users (it's different from sys.executable) and is only going to work when the shorter name is on PATH anyway (due to a limitation in Windows that I'm still trying to get fixed).
I also enabled support for the ExecutablePath key, which has the added benefit of making the debug py_d.exe able to find release Python 3.5+ installs (as well as finding the Store install at all, which is now using python3.8.exe as the main file because of the limitation I mentioned above).
zooba commentedon Sep 12, 2019
Sample output after this change (some paths elided):
Installed Pythons found by ...\py.exe Launcher for Windows
(venv) C:\...\env\Scripts\python.exe *
-3.8-64 python3.8.exe
-3.7-32-32 C:\Python37_x86\python.exe
-3.7-64 C:\Python37_x64\python.exe
-3.6-32-32 C:\Python36_x86\python.exe
-3.6-64 C:\Users\...\AppData\Local\Programs\Python\Python36\python.exe
-3.5-32-32 C:\Python35_x86\python.exe
-3.5-64 C:\Python35_x64\python.exe
-3.4-64 C:\Python34_x64\python.exe
-3.3-64 C:\Python33_x64\python.exe
-3.3-32 C:\Python33_x86\python.exe
-3.2-64 C:\Python32_x64\python.exe
-3.2-32 C:\Python32_x86\python.exe
-3.1-64 C:\Python31_x64\python.exe
-3.1-32 C:\Python31_x86\python.exe
-3.0-32 C:\Python30_x86\python.exe
-2.7-64 C:\Python27_x64\python.exe
-2.7-32 C:\Python27_x86\python.exe
-2.6-32 C:\Python26_x86\python.exe
-2.5-32 C:\Python25_x86\python.exe
eryksun commentedon Sep 12, 2019
MAX_VERSION_SIZE was increased, so the INSTALLED_PYTHON version string is now the full registry key name with the "-32" suffix. If that's intentional, you'll have to account for it in show_python_list. But I don't think the "-32" suffix belongs in the version string.
zooba commentedon Sep 12, 2019
Ah, good catch, I didn't notice that.
Because those are special cases, we should strip it off the version string. One day when we implement PEP-514 properly then they'll come back (and we'll probably drop the -64 suffix for consistency with the PEP).
zooba commentedon Sep 12, 2019
New changeset ed93a88 by Steve Dower in branch 'master':
bpo-38133: Allow py.exe launcher to locate installations from the Microsoft Store (GH-16025)
ed93a88
miss-islington commentedon Sep 12, 2019
New changeset 664d56a by Miss Islington (bot) in branch '3.8':
bpo-38133: Allow py.exe launcher to locate installations from the Microsoft Store (GH-16025)
664d56a
zooba commentedon Oct 14, 2019
New changeset 4d20228 by Steve Dower in branch 'master':
bpo-38133: Update docs to reflect fixes to py.exe launcher (GH-16791)
4d20228
miss-islington commentedon Oct 14, 2019
New changeset 42308e8 by Miss Islington (bot) in branch '3.8':
bpo-38133: Update docs to reflect fixes to py.exe launcher (GH-16791)
42308e8