[PyKDE] sip file syntax, Re: checking sip versions

Phil Thompson phil at riverbankcomputing.co.uk
Mon Feb 9 12:17:00 GMT 2004


On Monday 09 February 2004 10:38 am, Patrick Stinson wrote:
> Is there a clean way to check the sip version in a sip file, ie.
> %If Version(- Qt_2_00)
>             %If Version(Qt_1_43 -)
>             %If Version(Qt_2_00 - Qt_2_1_0)
>
> but for sip itself?

No, but (at the moment) there is no need.

> I'm trying to keep my sip code somewhat portable (wrt
> HeaderCode/TypeHeaderCode, other directives)

SIP v3 == SIP v4 + deprecated features.

So write for SIP v4 and it will work for SIP v3. I intend that future changes 
to SIP v4 will be backwards compatible.

Phil




More information about the PyQt mailing list