Skip to content

Comments

Discover Microsoft Store Pythons#6807

Merged
konstin merged 2 commits intomainfrom
konsti/read-python-from-store
Aug 29, 2024
Merged

Discover Microsoft Store Pythons#6807
konstin merged 2 commits intomainfrom
konsti/read-python-from-store

Conversation

@konstin
Copy link
Member

@konstin konstin commented Aug 29, 2024

Microsoft Store Pythons do not always register themselves in the registry, so we port https://github.com/python/cpython/blob/58ce131037ecb34d506a613f21993cde2056f628/PC/launcher2.c#L1744 and look them up on the filesystem in known locations.

Test Plan

So far I've confirmed that we find a store Python when I use cargo run python list, can we make this a part of any of the platform tests maybe?

@konstin konstin added enhancement New feature or improvement to existing functionality windows Specific to the Windows platform labels Aug 29, 2024
@zanieb zanieb requested a review from charliermarsh August 29, 2024 16:32
Base automatically changed from konsti/read-python-from-registry to main August 29, 2024 20:48
Microsoft Store Python do not register themselves in the registry, so we port <https://github.com/python/cpython/blob/58ce131037ecb34d506a613f21993cde2056f628/PC/launcher2.c#L1744> and look them up on the file system in known locations.

## Test Plan

Good question! So far I've confirmed that we find a store Python when I use `cargo run python list`, but we can't make this a part of any of the platform tests?
@konstin konstin force-pushed the konsti/read-python-from-store branch from 24ee410 to ffee09e Compare August 29, 2024 20:49
@konstin konstin enabled auto-merge (squash) August 29, 2024 20:50
@konstin konstin merged commit 9814852 into main Aug 29, 2024
@konstin konstin deleted the konsti/read-python-from-store branch August 29, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or improvement to existing functionality windows Specific to the Windows platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants