[PyKDE] PyQt / sipdistutils
Giovanni Bajo
rasky at develer.com
Wed Nov 30 16:23:59 GMT 2005
Jasper R. Plaisier <plaisier at chem.leidenuniv.nl> wrote:
> I have now worked around the problem in a quick and dirty way by copying
> sipdistutils.py to pyqtdistutils.py and changing the code in
> _sip_compile to the following
>
> def _sip_compile(self, sip_bin, source, sbf) :
> import pyqtconfig
> pqconfig = pyqtconfig.Configuration()
> os.system(" ".join([sip_bin,
> "-c", self.build_temp,
> "-b", sbf,
> "-I", pqconfig.pyqt_sip_dir,
> pqconfig.pyqt_qt_sip_flags,
> source]))
You could also derive a new class and re-implement just the _sip_compile
method.
> This works fine. HOwever, I had te change the self.spawn call to
> os.system, because the first would stop on the error:
>
> 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?
--
Giovanni Bajo
More information about the PyQt
mailing list