astral-sh/uv

Filter Python executables on Windows by Python version metadata

Open

#13927 opened on Jun 9, 2025

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (84,934 stars) (3,111 forks)batch import
help wantedperformancewindows

Description

See https://github.com/astral-sh/ruff/pull/18550#issuecomment-2956350021

Windows Python executables seem to have the Python version embedded in their metadata. This may be faster than querying the Python interpreter to get its version, which would speed up Python discovery on Windows when a specific version is requested.

Contributor guide