[Scons-users] dependencies on directories
bill at baddogconsulting.com
Fri Dec 11 16:42:09 EST 2015
Yes, currently you shouldn't have dependencies on Directories.
It won't behave the way you expect in that a change in a file would make
the directory out of date.
It's implicit rather than explicit.
And honestly would benefit from some separation between directories, and
what I think people generally mean which is all files (recursively, or not)
in/under a directory.
On Fri, Dec 11, 2015 at 3:56 AM, Tom Tanner (BLOOMBERG/ LONDON) <
ttanner2 at bloomberg.net> wrote:
> 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
> Scons-users mailing list
> Scons-users at scons.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Scons-users