-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use reparse points to detect Windows installer shims (#2284)
## Summary This PR enables use of the Windows Store Pythons even with `py` is not installed. Specifically, we need to ensure that the `python.exe` and `python3.exe` executables installed into the `C:\Users\crmar\AppData\Local\Microsoft\WindowsApp` directory _are_ used when they're not "App execution aliases" (which merely open the Windows Store, to help you install Python). When `py` is installed, this isn't strictly necessary, since the "resolved" executables are discovered via `py`. These look like `C:\Users\crmar\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.11_qbs5n2kfra8p0\python.exe`. Closes #2264. ## Test Plan - Removed all Python installations from my Windows machine. - Uninstalled `py`. - Enabled "App execution aliases". - Verified that for both `cargo run venv --python python.exe` and `cargo run venv --python python3.exe`, `uv` exited with a failure that no Python could be found. - Installed Python 3.10 via the Windows Store. - Verified that the above commands succeeded without error. - Verified that `cargo run venv --python python3.10.exe` _also_ succeeded.
- Loading branch information
1 parent
fd03362
commit 996a859
Showing
5 changed files
with
173 additions
and
78 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters