Update bundled Python URLs and add "arm" architecture variant (#3855)

## Summary

This also adds filtering for the ARM Pythons, since that needs some libc
changes; and it closes https://github.com/astral-sh/uv/issues/3854 by
way of adding an "arm" branch.
This commit is contained in:
Charlie Marsh 2024-05-26 23:33:08 -04:00 committed by GitHub
parent 61ed0c82ed
commit 4191c331a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 992 additions and 2 deletions

View file

@ -86,6 +86,7 @@ ARCH_MAP = {
"ppc64le": "powerpc64le",
"i686": "x86",
"i386": "x86",
"armv7": "armv7l",
}
OS_MAP = {"darwin": "macos"}
@ -106,7 +107,7 @@ def parse_filename(filename):
def normalize_triple(triple):
if "-static" in triple:
if "-static" in triple or "-gnueabihf" in triple or "-gnueabi" in triple:
logging.debug("Skipping %r: unknown triple", triple)
return
triple = SPECIAL_TRIPLES.get(triple, triple)