Spinning up compiled pyqt extensions

Patrick Stinson patrickkidd at gmail.com
Wed Oct 5 13:59:42 BST 2022


Not necessarily building wheels but just an .so for local import. But I
think your point stands that the same Qt version needs to be installed so
that the symbols just resolve.

On Tue, Oct 4, 2022 at 1:07 AM Phil Thompson <phil at riverbankcomputing.com>
wrote:

> On 03/10/2022 22:58, Patrick Stinson wrote:
> > Sorry if this has been covered elsewhere, I’ve bee out of the loop for
> > a while.
> >
> > What is the preferred way to build and install a custom sip extension
> > that depends on PyQt5 and Qt headers+libs so that it can be imported
> > by the python exe? sip-install requires a qmake executable which
> > requires separately installing qt headers+libs, but can cause symbol
> > conflicts with the qt libs included in the pip-installed PyQt module.
> >
> > The goal is to understand the qt/pyqt debs required to then simply
> > clone my sip modules repo, build+install it, then import it from the
> > python bin.
>
> It's not clear if you want to create .debs for your distro (depending on
> the distro provided PyQt/Qt) or wheels (depending on the PyQt/Qt wheels
> from PyPI).
>
> Assuming the latter you (probably) need to install the targeted version
> of Qt using the on-line installer. The other PyQt projects (eg.
> PyQt6-NetworkAuth to take the smallest) are examples of what you want to
> do.
>
> Phil
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20221005/6f029fee/attachment.htm>


More information about the PyQt mailing list