[PyKDE] Re: sip-4 vs sip-3

Phil Thompson phil at riverbankcomputing.co.uk
Mon Dec 1 08:52:01 GMT 2003


On Monday 01 December 2003 7:34 am, Gerard Vermeulen wrote:
> Phil,
>
> In developing PyQwt, I use two tricks to minimize the build time after
> fixing bugs or adding new methods:
> (1) 'smart' copying of sip's output from a buffer directory to the source
>     directory (only copy when two sip output files differ below the time
> stamp comment at the top).
> (2) use of ccache
>
> In this respect sip-4 is a step back compared to sip-3.  With sip-4,
> Addition of a single method to a single sip file leads always to a complete
> rebuild of PyQwt. In addition, ccache is far less efficient with sip-4 than
> with sip-3.
>
> One of the reasons (I hope the only one) is the fact that sip-4 is
> generating names as sipNm__qwt_5151 instead of the old symbolic
> sipName_QwtWheel. Presumably adding a new method, propagates different
> sipNames into all the sip-generated *.{cpp,h} files.
>
> Could it be possible to go back to the symbolic names, or use names
> like sipNm_ModuleName_ClassNumber_AttributeNumber to minimize changes
> in the generated source code?

I don't think that would make any difference - a name is a name whether it's 
symbolic or based on a number.

The new build system generates Makefiles that has a very simplistic vew of 
dependencies - I suspect this is the cause.

Phil




More information about the PyQt mailing list