Preserve historical sysconfig compiler mappings#19657
Merged
Merged
Conversation
jjhelmus
approved these changes
Jun 3, 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.
Summary
Keep the sysconfig generator aware of compiler paths that appeared in older downloadable
python-build-standalonereleases, so regenerating the mappings on currentmaindoes not drop support for previously shipped aarch64 and riscv64 binaries.Context
uv patches compiler paths embedded in managed Python
sysconfigdata to use portableccandc++commands. These mappings are generated from the current python-build-standalone targets.Older python-build-standalone releases remain downloadable and retain the compiler paths used when they were built. When a target changes toolchains or is removed from the current targets, regenerating the mappings silently drops support for those releases.
This previously removed the aarch64 GNU mappings. The upcoming python-build-standalone sync in #19531 would similarly replace the riscv64 GNU mappings with LLVM mappings.
Test plan
I've manually verified, that before this patch, on an arm64 linux box:
and after (after uninstalling the python version using
uv python uninstall 3.12.10):