How did you build PyQt5 on ppc64le?

Dmitry Shachnev mitya57 at ubuntu.com
Mon Oct 3 11:55:40 UTC 2022


Hey,

On Mon, Oct 03, 2022 at 10:53:48AM +0000, c.buhtz at posteo.jp wrote:
> Hey folks,
>
> regarding to this page and my own tests it seems that you where able to
> build PyQt5 on ppc64le architecture.
>
> This feels like magic to me because even the upstream maintainers are
> not able to do it. See https://github.com/PyQt5/PyQt/issues/150
>
> I also asked at upstream how to do it:
> https://www.riverbankcomputing.com/pipermail/pyqt/2022-September/044898.html
>
> Errors like this occur
> "AttributeError: module 'sipbuild.api' has no attribute
> 'prepare_metadata_for_build_wheel' "

This is not real error message. It just means that something else failed.

Here is the relevant part of the traceback from the linked email:

File "/tmp/pip-build-env-7rsifsqj/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 67, in apply_user_defaults
  raise PyProjectOptionException('qmake',

Here is that line in pyqtbuild/builder.py source code:

https://riverbankcomputing.com/hg/PyQt-builder/file/1.13.0/pyqtbuild/builder.py#l67

And it means that PyQt-builder was not able to find qmake in PATH. You should
add qmake to PATH or pass a custom path to sip-build using --qmake option.

There is nothing specific to ppc64le in our packaging.

--
Dmitry Shachnev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-motu/attachments/20221003/7aa8be6c/attachment.sig>


More information about the Ubuntu-motu mailing list