Skip to content

Commit

Permalink
Add riscv64 as a supported manylinux architecture (#751)
Browse files Browse the repository at this point in the history
Co-authored-by: Brett Cannon <brett@python.org>
  • Loading branch information
markdryan and brettcannon authored Jan 17, 2024
1 parent 4dce761 commit 4d85340
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/packaging/_manylinux.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,15 @@ def _have_compatible_abi(executable: str, archs: Sequence[str]) -> bool:
return _is_linux_armhf(executable)
if "i686" in archs:
return _is_linux_i686(executable)
allowed_archs = {"x86_64", "aarch64", "ppc64", "ppc64le", "s390x", "loongarch64"}
allowed_archs = {
"x86_64",
"aarch64",
"ppc64",
"ppc64le",
"s390x",
"loongarch64",
"riscv64",
}
return any(arch in allowed_archs for arch in archs)


Expand Down

0 comments on commit 4d85340

Please sign in to comment.