From 8c33fcba8a6b0b6abecd33331078ba0dd0a13c97 Mon Sep 17 00:00:00 2001 From: Mark Ryan Date: Thu, 14 Dec 2023 15:44:01 +0000 Subject: [PATCH] Add riscv64 as a supported manylinux architecture This will allow wheels with platform tags of the form manylinux_${GLIBCMAJOR}_${GLIBCMINOR}_riscv64 to be installed on riscv64 devices. --- src/packaging/_manylinux.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/packaging/_manylinux.py b/src/packaging/_manylinux.py index 3705d50d..0a9cf414 100644 --- a/src/packaging/_manylinux.py +++ b/src/packaging/_manylinux.py @@ -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)