PyQt5: disabling DBus appears not to work

Phil Thompson phil at riverbankcomputing.com
Sat May 24 11:01:35 BST 2025


On 23/05/2025 20:46, Rob Whitlock wrote:
> As described at https://gnats.netbsd.org/59187 and
> https://mail-index.netbsd.org/pkgsrc-bugs/index.html it looks like
> adding --no-dbus-python does not disable the DBus functionality of
> PyQt5. This can be shown by applying the patch at
> https://mail-index.netbsd.org/pkgsrc-bugs/2025/05/23/msg074047.html
> and trying to build x11/py-qt5 in pkgsrc. Although the build of PyQt5
> itself succeeds, it seems to still install the DBus files, causing the
> overall pkgsrc build of PYQt5 to fail.
> 
> Is there a better way of disabling the DBus functionality in PyQt5 or
> is this a bug in the PyQt5 build system?
> 
> Thanks,
> 
> Rob

PyQt has support for the dbus-python package and for Qt's QtDBus module. 
To disable support for the former use...

--no-dbus-python

To disable support for the latter use...

--disable QtDBus

Phil


More information about the PyQt mailing list