uv/crates/uv-python
Zanie Blue 64e91a7e87
Fix handling of `python-preference = system` when managed interpreters are on the PATH (#15059)
This is the first part of fixing a 0.8.0 regression from
https://github.com/astral-sh/uv/pull/7934

There, we added handling for skipping managed interpreters on the PATH
when `only-system` is used, but did not update the logic to prefer
system interpreters over managed ones when `system` is used. Here, we
fix that by skipping managed interpreters when `system` is used unless
_only_ managed interpreters are available. While this logic is applied
during in a general discovery method, it's only relevant for the PATH
(and the Windows registry) because we already change the _order_ that we
inspect installations in when `system` is used, so the managed
installation directory is inspected last.

This behavior did not regress in 0.8, it's always been this way,
however, I need this change in order to fix a different bug.
2025-08-04 16:02:42 +00:00
..
python Fix Ruff linting (#14111) 2025-06-17 17:28:23 +00:00
src Fix handling of `python-preference = system` when managed interpreters are on the PATH (#15059) 2025-08-04 16:02:42 +00:00
.gitignore minify and filter embed managed pythons json on compile time (#12967) 2025-04-30 15:51:03 -04:00
Cargo.toml Split platform detection code into a dedicated `uv-platform` crate (#14918) 2025-07-28 14:12:04 -05:00
build.rs Only rebuild download JSON on change (#13261) 2025-05-02 07:49:34 -05:00
download-metadata.json Sync latest Python releases (#14847) 2025-07-23 11:01:09 -05:00
fetch-download-metadata.py Use sha256 checksum from GitHub API for GraalPy releases (#14779) 2025-07-21 08:35:45 -04:00