Repository navigation
Conversation
UV_PYTHON_ARCH environment variable
Merging this PR will not alter performance
Comparing Footnotes
|
zanieb
added a commit
to astral-sh/uv
that referenced
this pull request
Oct 1, 2026
Selecting a Python architecture currently requires including it in each interpreter request, which is awkward with version-only project pins and requires users to specify a Python key instead. Add `UV_PYTHON_ARCH` to constrain interpreter discovery and managed downloads independently of the Python version. Explicit architecture requests and interpreter paths take precedence; `uv python list --all-arches` and `--all-platforms` still enumerate all requested platforms. Ports astral-sh#2213. This allows users to select `x86_64` to recover the current behavior after we the Windows ARM64 default changes in #22100.
astral-automations-bot
Bot
force-pushed
the
zb/windows-arm64-python-default-20260930
branch
3 times, most recently
from
October 9, 2026 18:08
5179990 to
2c802ca
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Selecting a Python architecture currently requires including it in each interpreter request, which is awkward with version-only project pins. Add
UV_PYTHON_ARCHto select the architecture independently of the Python version. The environment variable constrains interpreter discovery and managed downloads, while requests with an explicit architecture or interpreter path take precedence. This provides a persistentx86_64selection on Windows ARM64.Stacked on #2207.