SIP Wheel Builds on AAarch64 Broken
Thomas Watson
twatson52 at icloud.com
Sat Aug 6 18:41:26 BST 2022
Builds of wheels with SIP on AArch64 (such as PyQt5 itself) are currently broken. This is because of how the wheel name is computed here: https://riverbankcomputing.com/hg/sip/file/tip/sipbuild/project.py#l338 <https://riverbankcomputing.com/hg/sip/file/tip/sipbuild/project.py#l345>
For PyQt5 for example, the wheel name is computed to be "PyQt5-5.15.6-cp36-abi3-manylinux1_aarch64.whl". However, according to PEP 600: https://peps.python.org/pep-0600/#package-indexes <https://peps.python.org/pep-0600/#package-indexes> a tag of "manylinux1" is only valid for i686 and x86_64 CPUs. Accordingly, the wheel builds fine, but pip refuses to install it, claiming "ERROR: PyQt5-5.15.6-cp36-abi3-manylinux1_aarch64.whl is not a supported wheel on this platform."
Here is a sample patch that is confirmed to fix the problem: https://raw.githubusercontent.com/NixOS/nixpkgs/62001eac1335a0e3257f9975d289b6be15d1f07b/pkgs/development/python-modules/sip/fix-manylinux-version.patch <https://raw.githubusercontent.com/NixOS/nixpkgs/62001eac1335a0e3257f9975d289b6be15d1f07b/pkgs/development/python-modules/sip/fix-manylinux-version.patch> . The wheel name with this patch is "PyQt5-5.15.6-cp36-abi3-manylinux2014_aarch64.whl" and it installs and functions correctly. I am not sure if this works properly with cross-compilation, but that is worth thinking about.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20220806/83c7c60a/attachment.htm>
More information about the PyQt
mailing list