uv
b851ced0 - Fix selection of free-threaded interpreters during default Python discovery (#8239)

Comment changes are shownComment changes are hidden
Commit
218 days ago
Fix selection of free-threaded interpreters during default Python discovery (#8239) Closes https://github.com/astral-sh/uv/issues/8228 e.g., on this branch ``` ❯ uv python install 3.13t 3.13 ❯ cargo build ❯ cargo run -q --bin uvx -- --from build python -c "import sys; print(sys.base_prefix)" /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none ❯ cargo run -q --bin uvx -- -p 3.13 --from build python -c "import sys; print(sys.base_prefix)" /Users/zb/.local/share/uv/python/cpython-3.13.0-macos-aarch64-none ❯ cargo run -q --bin uvx -- -p 3.13t --from build python -c "import sys; print(sys.base_prefix)" /Users/zb/.local/share/uv/python/cpython-3.13.0+freethreaded-macos-aarch64-none ``` and on main ``` ❯ cargo build ❯ cargo run -q --bin uvx -- --from build python -c "import sys; print(sys.base_prefix)" Installed 3 packages in 12ms /Users/zb/.local/share/uv/python/cpython-3.13.0+freethreaded-macos-aarch64-none ``` I want to add more test coverage around this, but I've noticed the free-threaded discovery tests are a bit off as-is and it'll be a bigger task. I think the recent bugs around discovery indicate we should invest more into that test framework.
Author
Parents
  • .github/workflows
    • File
      ci.yml
  • crates/uv-python/src
    • File
      discovery.rs