[Scons-dev] Checking a target has been built

Gary Oberbrunner garyo at oberbrunner.com
Thu Aug 22 13:07:06 EDT 2013


Some people use fake targets which would confuse this I think. Also what
about non-File nodes? (Aliases, Values) Not sure, just something to check.


On Thu, Aug 22, 2013 at 7:04 AM, Tom Tanner (BLOOMBERG/ LONDON) <
ttanner2 at bloomberg.net> wrote:


> There was a discussion about this a while ago, and I got round to looking

> at it. I seem to have found a trivial solution, but it's so trivial I'm

> extremely worried by it.

>

> in Node/__init__.py:

> Add the following to built(self) after the self.clean() call

>

> if not self.exists():

> print "Warning: Cannot find target after building", self

>

> Am I missing something?

> (Clearly I'd like it to be an error but a warning to start off with would

> be safer...)

>

> _______________________________________________

> Scons-dev mailing list

> Scons-dev at scons.org

> http://two.pairlist.net/mailman/listinfo/scons-dev

>

>



--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20130822/df49694e/attachment.htm>


More information about the Scons-dev mailing list