[PyQt] Building SIP project
phil at riverbankcomputing.com
Tue Jul 5 22:33:51 BST 2011
On Tue, 5 Jul 2011 21:57:14 +0200, Jens Thoms Toerring <jt at toerring.de>
> Hi Matt,
> On Tue, Jul 05, 2011 at 11:04:54AM -0700, Matt Newell wrote:
>> > So I am looking for a way to tell sip to not re-create
>> > .cpp files when they aren't older than the correspon-
>> > ding .sip file or anything equivalent. Any ideas how
>> > to get this done?
>> I think that such a check wouldn't work in many cases. However if sip
>> would do a comparison of the existing .cpp file to the newly generated
>> one, and only overwrite the existing one if there was a change, that
>> should work properly in all cases.
> Brilliant! That's something one can do easily in the confi-
> guration script: just set sip's '-c' option to a temporary
> directory and then, after sip has been run, copy only those
> files that are different (except for the "Generated by SIP"
> line which has always a different date) over to the direc-
> tory where they're supposed to end up in for compilation;-)
Use the -T option to avoid the changing timestamp problem.
Note that I don't consider this whole issue a SIP problem. It's a
limitation of ancient build systems (ie. make) that is addressed by more
modern systems (eg. cmake).
More information about the PyQt