[PyQt] SIP newcomer questions/complaints

Hans Meine meine at informatik.uni-hamburg.de
Mon Apr 7 10:09:46 BST 2008


Hi Kevin!

Am Montag, 07. April 2008 02:11:24 schrieb Kevin Watters:
> But when I change one of the sub SIP files, SIP doesn't recognize that its
> corresponding files need to be regenerated. So the only way I've found to
> recompile is to "touch" the root SIP file, which causes SIP to regen ALL of
> my generated cpp files, and subsequent GCC to recompile ALL of them. Is
> there an easy solution to this?

That would be cool indeed.  Seems to be a missing feature.  BTW: I am normally 
using boost::python (which IIRC has been used to wrap Qt4 one, too), which is 
very comfortable (and may be used to wrap large libraries automatically using 
pyplusplus, incl. partial recompilations), but most probably more "bloated" 
than SIP.

However, on the C++-SIG list, Gustavo Carneiro announced his "pybindgen", 
which is supposed to be very lightweight (but maybe not advanced enough to 
wrap wx or Qt).
 https://launchpad.net/pybindgen/

> 6) The docs show show no comparisons with similar tools. I'm trying SIP to
> see if the memory usage of a large wxPython app can be reduced--I have seen
> comparisons claiming that SIP would be slower than hand generated code, but
> faster than SWIG. This seems to be a fair assumption, since SWIG generates
> lots of Python shadow classes, and SIP does not. But some data, or even
> anecdotal advice about what you're going to get out of SIP compared to SWIG
> might be useful in the documentation.

You can be sure that you are not the only one who would be very much 
interested in such statistics.

-- 
Ciao, /  /
     /--/
    /  / ANS


More information about the PyQt mailing list