[PyQt] latest pykde4 (4.9.2) build fails against new sip-4.14/PyQt-4.9.5

Phil Thompson phil at riverbankcomputing.com
Wed Oct 3 14:16:33 BST 2012


On Wed, 03 Oct 2012 14:55 +0200, Luca Beltrame <einar at heavensinferno.net>
wrote:
> In data mercoledì 3 ottobre 2012 08:51:48, Scott Kitterman ha scritto:
> 
>> It would make it possible to run PyKDE4 4.10 on both Debian Wheezy and
>> Ubuntu Quantal (12.10) without having to revert the changes for the
newer
> 
> I  can try doing that but I'd need some guidance as my SIP knowledge is
> pretty 
> limited. Phil, can SIP conditionally add or exclude definitions?

Yes. Use %Feature to define a feature that will be enabled by default...

%Feature PyKDE_UseMyMappedType

...then...

%If (PyKDE_UseMyMappedType)
%MappedType MyMappedType
{
    ...
};
%End

In your configure.py (or whatever) pass -x PyKDE_UseMyMappedType to sip in
order to *disable* it.

Phil


More information about the PyQt mailing list