uv/crates/uv-python/src
Zanie Blue 241ad88051
Confirm that the directory name is a valid Python install key during managed check (#16080)
Closes https://github.com/astral-sh/uv/issues/16077

```
❯ UV_PYTHON_INSTALL_DIR=/opt uv python list --no-managed-python
cpython-3.9.6-macos-aarch64-none    /usr/bin/python3
❯ alias uv=$(pwd)/target/debug/uv
❯ UV_PYTHON_INSTALL_DIR=/opt uv python list --no-managed-python
cpython-3.13.3-macos-aarch64-none     /opt/homebrew/bin/python3.13 -> ../Cellar/python@3.13/3.13.3/bin/python3.13
cpython-3.13.3-macos-aarch64-none     /opt/homebrew/bin/python3 -> ../Cellar/python@3.13/3.13.3/bin/python3
cpython-3.12.10-macos-aarch64-none    /opt/homebrew/bin/python3.12 -> ../Cellar/python@3.12/3.12.10/bin/python3.12
cpython-3.11.12-macos-aarch64-none    /opt/homebrew/bin/python3.11 -> ../Cellar/python@3.11/3.11.12/bin/python3.11
cpython-3.9.6-macos-aarch64-none      /usr/bin/python3
pypy-3.10.14-macos-aarch64-none       /opt/homebrew/bin/pypy3 -> ../Cellar/pypy3.10/7.3.17_1/bin/pypy3
```

Prevents false positives when the `UV_PYTHON_INSTALL_DIR` is a prefix of
some other path with Python installations
2025-10-03 19:36:08 +00:00
..
sysconfig Sync latest Python releases (#15958) 2025-09-20 02:25:21 +00:00
discovery.rs Allow selection of debug build interpreters (#11520) 2025-09-12 13:32:22 +00:00
downloads.rs Avoid ANSI codes in debug! messages (#15843) 2025-09-17 14:30:43 +00:00
environment.rs Move preview features into a dedicated crate (#15482) 2025-08-24 09:55:30 -04:00
implementation.rs Allow selection of pyodide interpreters with "pyodide" (#15256) 2025-08-13 19:08:55 +00:00
installation.rs Allow selection of debug build interpreters (#11520) 2025-09-12 13:32:22 +00:00
interpreter.rs Confirm that the directory name is a valid Python install key during managed check (#16080) 2025-10-03 19:36:08 +00:00
lib.rs Use `EnvVars` for Conda variables in tests (#15930) 2025-09-18 07:52:23 -05:00
macos_dylib.rs Install and remove managed Python to and from the Windows Registry (PEP 514) (#10634) 2025-01-23 14:13:41 +00:00
managed.rs Allow upgrading prerelease versions of the same minor Python version (#15959) 2025-09-22 16:59:48 +00:00
microsoft_store.rs Bump MSRV to 1.85 and Edition 2024 (#13516) 2025-05-18 19:38:43 -04:00
pointer_size.rs Change "toolchain" to "python" (#4735) 2024-07-03 07:44:29 -05:00
prefix.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
python_version.rs Allow pinning managed Python versions to specific build versions (#15314) 2025-08-25 16:25:05 -05:00
target.rs Add `uv-` prefix to all internal crates (#7853) 2024-10-01 20:15:32 -04:00
version_files.rs Make the use of `Self` consistent. (#15074) 2025-08-05 20:17:12 +01:00
virtualenv.rs Always treat conda environments named `base` and `root` as base environments (#15682) 2025-09-17 17:32:14 +00:00
windows_registry.rs Use the `windows` crate facade consistently (#15737) 2025-09-09 15:07:14 +00:00