Open xen0n opened 3 months ago
cc @yzewei @loongson-zn (seems both are from Loongson)
Maybe just check EF_LOONGARCH_OBJABI_V1
for every EM_LOONGARCH
ELF files containing a SEC_LOAD | SEC_CODE | SEC_HAS_CONTENTS
section in the wheel.
Or, we can add this check into libc loader (gated with something like a Glibc tunable) and the packages requiring such a check will be able to simply enable it.
Link: https://github.com/pypa/manylinux/discussions/1587
If we were to support LoongArch
manylinux
wheels on PyPI, we must be able to prevent installation of wheels built on a different world than that of the running system.Right now, due to:
the multiarch specifiers for both worlds are the same, so we must be able to distinguish by other means. This is likely glibc symbol versions for glibc-based systems, but I think musl-based systems will need something else.