[Scons-users] dependencies when you define environment variables

Gary Oberbrunner garyo at oberbrunner.com
Wed Jul 18 10:04:51 EDT 2012


On Wed, Jul 18, 2012 at 9:51 AM, TOM TANNER (BLOOMBERG/ LONDON)
<ttanner2 at bloomberg.net> wrote:

>> Well, your builder will also take env var overrides, so it's mostly not any

>> different from Command.

> It can?

>

> So I can do

> builder = Builder('something that requires env set',

> ENV = env['ENV'] + ( 'VARIABLENAME': '${SOURCE.dir}')

> ?

>

> (I realise that + is not the appropriate operator here)


No, the overrides are on the *call* to the builder, not when you create it.


>> I think what you're saying is having to manipulate env[ENV] before calling

>> the builder each time is annoying. Is that right?

> That is true too

>

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users




--
Gary


More information about the Scons-users mailing list