[PyQt] How to test sip version

Sébastien Petitdemange sebastien.petitdemange at esrf.fr
Tue Jun 11 15:32:33 BST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/11/2013 04:17 PM, Phil Thompson wrote:
> On Tue, 11 Jun 2013 16:04:15 +0200, Sébastien Petitdemange 
> <sebastien.petitdemange at esrf.fr> wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> On 06/11/2013 03:31 PM, Phil Thompson wrote:
>>> On Tue, 11 Jun 2013 14:42:55 +0200, Sébastien Petitdemange 
>>> <sebastien.petitdemange at esrf.fr> wrote:
>>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>> 
>>>> On 06/11/2013 10:27 AM, Phil Thompson wrote:
>>>>> 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
>>>>> 
>>>> Hi Phil,
>>>> 
>>>> Thanks for your quick reply.
>>>> 
>>>> So if my sip file are compatible with directives of sip
>>>> v4.12, they will stay compatible with sip version >= v4.12.
>>>> Is that correct or I misunderstood?
>>> 
>>> That's correct, but it's true of any version - sip tries to 
>>> maintain backwards compatibility.
>>> 
>>> Phil
>>> 
>> 
>> 
>> Hi Phil,
>> 
>> I completely agree with you. I know that you always try to keep 
>> backward compatibility.
>> 
>> You said in the previous email: "Starting with SIP v4.12 this is
>> done for you"
>> 
>> Apparently, I misunderstood your remark. What is done for me?
> 
> The creation of a timeline corresponding to the different SIP
> versions so that you can just do...
> 
> %If (SIP_4_13_1 - SIP_4_14_2)
> 
> ...see the %Timeline documentation.
> 
> Phil
> 

Hi Phil,

Many thanks for the explanation.

Regards,

SEB



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJRtzUBAAoJEEtktDVosZgUYjAH/Agai4yBtL/TsplhNqCmms5O
hLeLnu/C3CVGJP7RmhhI0JW2xB56OVZ5IozzH7qeZzI+irwe0dNUWhqIawrwyaoH
524oNCYMQcBDC4ywL4qij45+eAqnZJLnlK6qYBW9r4mQutZ+FhlPpRE+5Oe8g0ca
s7aq5RnoWsa9D+SOKlKbUwxEFhdsPfnQWw+oZ1nSv6BmCHqg6/qtudhxigaBSri5
LGVUyAXifz1/EpxZ/kxHaIWAGrEV0Aj7IcBTvz+aXnVZZvD4IPXRqsW6eKZV6ciO
TqplGVY0bRVRKNsSA3fCR6QHpQM5LDNFTiz+2AKDIzIugGxg2/xb9UoO7uoAft4=
=rtIx
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sebastien_petitdemange.vcf
Type: text/x-vcard
Size: 218 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20130611/c83f486d/attachment.vcf>


More information about the PyQt mailing list