mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
![]() ## 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 https://github.com/astral-sh/uv/issues/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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |