[PyQt] PYQT_CONFIGURATION["sip_flags"]

Phil Thompson phil at riverbankcomputing.com
Mon Aug 27 16:01:16 BST 2018


On 27 Aug 2018, at 3:38 pm, Rex Dieter <rdieter at math.unl.edu> wrote:
> 
> As suggested, I've started researching how to make various sip/PyQt 
> consumers respect PYQT_CONFIGURATION, in particular, 
> PYQT_CONFIGURATION["sip_flags"].
> 
> This was useful,
> $ python3
> ...
>>>> from PyQt5.Qt import PYQT_CONFIGURATION;
>>>> print(PYQT_CONFIGURATION["sip_flags"])
> -n PyQt5.sip -t WS_X11 -t Qt_5_10_1
> 
> and the idea is that related python modules should pass those same arguments 
> to sip?  (or is just the -n PyQt5.sip piece enough?)

All of them.

> I wondered because kde's 
> https://phabricator.kde.org/D15091
> code review seems to be extracting and using only the -n ... part

They must be specifying the other flags elsewhere - not DRY.

> Next,
> 
> $ python3
> ...
>>>> from PyQt4.Qt import PYQT_CONFIGURATION
>>>> print(PYQT_CONFIGURATION["sip_flags"])
> -x VendorID -t WS_X11 -x PyQt_NoPrintRangeBug -t Qt_4_8_6
> 
> shouldn't PyQt4-4.12.2 be including '-n PyQt4.sip' in there?

Yes - that's a (very annoying) bug. It probably merits a v4.12.3.

Phil


More information about the PyQt mailing list