[Scons-dev] Calling PseudoBuilder from an emitter function from a Builder with OverrideEnvironment looses overrides

Dirk Bächle tshortik at gmx.de
Mon Oct 21 06:40:27 EDT 2013


Hi Andreas,

On 21.10.2013 11:54, andreas.ames at de.transport.bombardier.com wrote:

>

> Hi all,

>

> first of all, thanks for providing such a useful tool as scons.

>

> I've found a small glitch in Scons 2.1.0 (as part of Ubuntu 12.04

> LTS). I've got an emitter function installed for one of my builders.

> This builder is called with keyword arguments so that an

> OverrideEnviroment is used to execute it. When the emitter function

> is called the OverrideEnvironment is presented to it in the env

> parameter. But if I call a PseudoBuilder (i.e. a MethodWrapper

> instance) from there, the PseudoBuilder itsself is called with the

> original environment and the OverrideEnvironment is no longer

> available to it. I guess, a possible fix would be to forward the

> keyword arguments used to call the builder to the emitter function so

> that these keyword arguments could be used to call the PseudoBuilder.

>


as a first thought on this: I wouldn't expect this to work at all,
because it shouldn't be necessary to call any kind of Builder from an
Emitter.
Can you possibly tell us a bit more about where this setup comes from,
or why you need to do it like this?

Thanks a lot in advance and best regards,

Dirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://two.pairlist.net/pipermail/scons-dev/attachments/20131021/448acb56/attachment.htm>


More information about the Scons-dev mailing list