[PyQt] How to test sip version

Phil Thompson phil at riverbankcomputing.com
Tue Jun 11 09:27:31 BST 2013


On Tue, 11 Jun 2013 10:04:31 +0200, Sébastien Petitdemange
<sebastien.petitdemange at esrf.fr> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi list,
> 
> I need to have sip file compatible with != sip version (starting at
4.10)
> What is the best way to archive that?

If you are talking about SIP directives, ie. you want to use %If, and you
need to support versions as old as that, then you need to implement
something yourself. You could define a %Timeline for the SIP versions and
pass the right -t argument to sip after you have detected which version if
sip you are using.

Starting with SIP v4.12 this is done for you.

Phil


More information about the PyQt mailing list