SIP Wheel Builds on AAarch64 Broken
Phil Thompson
phil at riverbankcomputing.com
Sun Aug 7 10:36:45 BST 2022
On 06/08/2022 18:41, Thomas Watson wrote:
> 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.
The minimum_glibc_version should determine what tag is used.
PyQt-builder sets this to v2.17 for PyQt5. 'manylinux1' suggests that
the version is set to something less than v2.5 or not set at all.
What is the version set to?
Phil
More information about the PyQt
mailing list