Add architecture (ISA) awareness to Python discovery#3058
Merged
gaborbernat merged 18 commits intoFeb 23, 2026
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
gaborbernat
reviewed
Feb 21, 2026
gaborbernat
requested changes
Feb 23, 2026
gaborbernat
left a comment
Contributor
There was a problem hiding this comment.
we should bump the version key for the py info cache.
gaborbernat
approved these changes
Feb 23, 2026
This was referenced Mar 16, 2026
This was referenced Mar 17, 2026
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.
Use sysconfig.get_platform() to determine each interpreter's CPU architecture (arm64, x86_64, etc.) and expose it via a new 'machine' property on PythonInfo and an optional machine suffix on PythonSpec.
This allows users to distinguish between interpreters that share the same version and bitness but target different architectures, e.g.: virtualenv --python cpython3.12-64-arm64 .venv
Thanks for contributing, make sure you address all the checklists (for details on how see development documentation)
Refs: #3069"
tox -e fix)docs/changelogfolder