[PyQt] PyQt/SIP snapshots

Phil Thompson phil at riverbankcomputing.com
Sun Mar 29 12:11:14 BST 2009


On Sun, 29 Mar 2009 04:22:14 +0200, David Boddie <david at boddie.org.uk>
wrote:
> On Sunday 29 March 2009, Phil Thompson wrote:
>> On Sat, 28 Mar 2009 21:16:31 +0100, David Boddie <david at boddie.org.uk>
> 
>> >  * pyrcc4 now requires you to pass -py2 for Python 2.x code - this
>> >  breaks
>> >    existing build environments. Is there a way that it could figure
out
>> >    which version of Python it is running with and use that to
determine
>> >    what kind of code to generate?
>>
>> I can't think of one (until pyrcc4 is re-written in Python). You only
>> need
>> to pass -py2 for Python 2.5.x and earlier.  If it was for Python 2.x
then
>> I
>> would have made it the default.
> 
> Ah, I forgot that pyrcc4 is written in C++. Was it done so for
performance
> reasons or was there something that couldn't easily be done in Python?

Neither, it's a simple hack of rcc. I think a Python version would be
fairly trivial to implement, but it's always been low priority.

Phil


More information about the PyQt mailing list