Discussion:
[Scons-users] Value builder
Jason Kenny
2018-07-23 20:17:08 UTC
Permalink
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

Loading...