Update riscv64 Python downloads to allow install on riscv64gc (#10937)

Closes https://github.com/astral-sh/uv/issues/10883
This commit is contained in:
Zanie Blue 2025-01-24 09:33:29 -06:00 committed by GitHub
parent 98e7cd00c8
commit eeab865194
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 12 additions and 9 deletions

View file

@ -74,7 +74,10 @@ def prepare_arch(arch: dict) -> tuple[str, str]:
case "armv7":
family = "Arm(target_lexicon::ArmArchitecture::Armv7)"
case "riscv64":
family = "Riscv64(target_lexicon::Riscv64Architecture::Riscv64)"
# The `gc` variant of riscv64 is the common base instruction set and
# is the target in `python-build-standalone`
# See https://github.com/astral-sh/python-build-standalone/issues/504
family = "Riscv64(target_lexicon::Riscv64Architecture::Riscv64gc)"
case value:
family = value.capitalize()
variant = (