[Scons-users] Builder Arguments: **kwargs?

John Galbraith jgalb at lanl.gov
Mon Jul 30 16:10:18 EDT 2012


Gary, thanks for the quick response.

So from the docs, it looks as though AddMethod offers a way to
arbitrarily modify the "source" and "target" arguments, and call
multiple builders together. But it still cannot actually modify the
behavior of the ultimate action itself.

I am thinking about adding custom builders on the fly, which are
actually recently constructed callable objects (with constructor
arguments!) instead of simple functions. Might be able to get this to
look good using decorators, even.

John


> Builders (as well as the Actions invoked by builders) have fixed

> function signatures. kwargs are already passed as environment

> overrides, so there's no easy way right now to pass additional args

> through to actions. You can create a pseudo-builder though:

> http://www.scons.org/doc/HTML/scons-user/c3829.htmlwhich can have any

> signature you want.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20120730/6eeaca4f/attachment.htm>


More information about the Scons-users mailing list