[Scons-users] Value builder

Jason Kenny dragon512 at live.com
Mon Jul 23 16:17:08 EDT 2018


I am making a value builder in SCons.
I think I found a bug. In the Value node there is a read() and write() method. If I try to call the read method before the node is built we go into a recursive loop. For example:
 def build_value(target, source, env):
    print target[0],target[0].read() # BOOM
    target[0].write(source[0].read())
This is because the read() method calls self.build(). Should it return None if there is nothing to read? The taskmaster should have called the node to build correctly. I don't think it should try to build otherwise.
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20180723/4639660d/attachment.html>


More information about the Scons-users mailing list