[PyQt] SIP API v2 at compile time?

2010-03-04 Thread Jugdish
Is there any way to compile SIP so that it uses v2 of its API for things like QString, QVariant, QDate, etc.? I would rather not do: import sip sip.setapi('QString', 2) at runtime because I can not always guarantee that PyQt4 hasn't been imported before I am able to make the above call. Instead,

Re: [PyQt] SIP API v2 at compile time?

2010-03-04 Thread Phil Thompson
On Thu, 4 Mar 2010 15:57:59 +, Jugdish wrote: > Is there any way to compile SIP so that it uses v2 of its API for things > like QString, QVariant, QDate, etc.? > I would rather not do: > > import sip > sip.setapi('QString', 2) > > at runtime because I can not always guarantee that PyQt4 hasn