[PyKDE] PyQt / sipdistutils
Giovanni Bajo
rasky at develer.com
Wed Nov 30 22:06:29 GMT 2005
plaisier at chem.leidenuniv.nl wrote:
>>> I have now worked around the problem in a quick and dirty way by
>>> copying
>> You could also derive a new class and re-implement just the
>> _sip_compile
>> method.
>
> I realize that, but I was more looking for a generic solution that
> was already implemented and that i maybe missed or wasn't aware of.
No, I don't think it was ever used before for PyQt extensions. But a clean
patch would be welcome :)
>>> sip: /usr/share/sip/qt/versions.sip:30: Exactly one of this
>>> %Timeline
>>> must be specified with the -t flag
>>>
>>> The -t flag is present (and shown on the screen).
>>
>> What's the exact value (repr) of pqconfig.pyqt_qt_sip_flags? How did
>> your modified self.spawn() call look like?
>
> The modified spawn looked like this
> self.spawn([sip_bin,
> "-c", self.build_temp,
> "-b", sbf,
> "-I", pqconfig.pyqt_sip_dir,
> pqconfig.pyqt_qt_sip_flags,
> source])
>
> pqconfig.pyqt_qt_sip_flags =
> -x Qt_STYLE_WINDOWSXP -x Qt_STYLE_CDE -x Qt_STYLE_INTERLACE -x
> Qt_STYLE_MOTIF -x Qt_STYLE_MOTIFPLUS -x Qt_STYLE_PLATINUM -x
> Qt_STYLE_SGI -x Qt_STYLE_CDE -x Qt_STYLE_INTERLACE -x Qt_STYLE_MOTIF
> -x Qt_STYLE_MOTIFPLUS -x Qt_STYLE_PLATINUM -x Qt_STYLE_SGI -x
> Qt_STYLE_WINDOWSXP -x VendorID -t WS_X11 -t Qt_3_3_0
If this is a single string, it looks like you need to split it, as spawn()
accepts separate strings for each parameter. Something like this might work:
self.spawn([sip_bin,
"-c", self.build_temp,
"-b", sbf,
"-I", pqconfig.pyqt_sip_dir] +
pqconfig.pyqt_qt_sip_flags.split() +
[source])
But then I don't know. I don't even know what %Timeline and -t are for :)
Giovanni Bajo
More information about the PyQt
mailing list