[Scons-users] dependencies on directories

Tom Tanner (BLOOMBERG/ LONDON) ttanner2 at bloomberg.net
Fri Dec 11 03:56:32 EST 2015


So when fiddling around with my 'error on file changed during build' I discovered someone had created some targets that were dependent on directories, which the check *really* did not like very much.

But I'm confused as to what a dependency on a directory actually means. It generally seems to mean 'exists' but get_timestamp returns the latest time in any file in that directory rather than the timestamp of the directory. And the .sconsign entry contains neither time or md5sum. I suppose this means you shouldn't really have dependencies on directories, they should be order only dependencies. Is that how they behave, or can you rebuild if the contents of a directory change?


Currently this also means I have  nasty 'isdir' check in my validation of file-not-changed which doesn't feel very nice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20151211/99519a1d/attachment.html>


More information about the Scons-users mailing list