[PyQt] Specifying installation path of dbus.mainloop?

Phil Thompson phil at riverbankcomputing.com
Fri May 22 18:16:23 BST 2015


On 22/05/2015 10:44 am, Paul Melis wrote:
> (Apologies if this gets sent more than once, I had some trouble with my 
> mailer)
> 
> Hi,
> 
> I'm building PyQt5 5.4.1 from source with the goal of installing it in
> a standalone directory (the software module system we use puts e.g. Qt
> in /sara/sw/qt/5.4.1, sip in /sara/sw/sip/4.16.7, etc).
> 
> I use the following configuration options:
> 
> #!/bin/sh
> Q=/sara/sw/pyqt/5.4.1
> 
> python ./configure.py \
>     --verbose \
>     --confirm-license \
>     --sip-incdir $SARA_SIP_INCLUDE \
>     --bindir $Q/bin \
>     --destdir $Q/lib/python2.7/site-packages \
>     --sipdir $Q/share/sip/PyQt5
> 
> This works mostly fine and allows almost all installation paths to be
> specified, except for the location of the dbus.mainloop module, which
> configure.py places in the global python package directory:
> 
> ...
> The dbus support module will be installed in
> /usr/lib/python2.7/dist-packages/dbus/mainloop.
> ...
> 
> Which then fails during make install, as it isn't writable (nor should 
> it be).
> 
> I've tried to set pydbus_module_dir in a configure file, but that
> doesn't seem to do the trick.
> 
> I could leave out QtDbus from the modules to build (with a very long
> --enable line ;-) as there is no --disable :-/), but is the dbus
> module essential in PyQt? Or put differently, is there anything in
> PyQt itself that uses it, or is it only used from user code?

The dbus.mainloop module implements the "standard" Python DBus support. 
It is an alternative to QtDBus.

I'll add an option to disable the mainloop support.

Phil


More information about the PyQt mailing list