PyQt5: disabling DBus appears not to work

Rob Whitlock rwhitlock22 at gmail.com
Sun May 25 00:15:00 BST 2025



> On May 24, 2025, at 6:01 AM, Phil Thompson <phil at riverbankcomputing.com> wrote:
> 
> 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

Thanks, that works great!


More information about the PyQt mailing list