[Scons-users] env[X'] and signatures

Erling D. Andersen e.d.andersen at mosek.com
Tue Dec 27 05:23:56 EST 2016


Actually this is not the case I am talking about but it is similar.

I will try to create an example asap.




On Mon, Dec 26, 2016 at 9:36 AM, Tom Tanner (BLOOMBERG/ LONDON) <
ttanner2 at bloomberg.net> wrote:

> I think he's talking the situation where you set env.env['MYVAR'], which
> means for something like this
>
> env.env['MYVAR'] = 'Fish'
> env.Command('some_random_script < $SOURCE > $TARGET', sources, targets)
>
> and 'some_random_script' does
>
> #!/bin/sh
> echo $MYVAR
>
> and you then change the SConscript file and set env.env['MYVAR'] to
> 'Chips', it won't cause a rebuild.
>
>
>
>
>
>
>
> From: scons-users at scons.org At: 12/19/16 19:21:51
> To: scons-users at scons.org
> Subject: Re: [Scons-users] env[X'] and signatures
>
> I'm not sure that all env[] vars have ever been hashed into each target.
> Typically the command line, the sources, and if the builder is a python
> function the source of the python function goes into the target hash.
>
> Any chance you can paste your python builder?
> Or when you say python script, do you mean it calls a python script via
> command line?
>
> On Sun, Dec 18, 2016 at 11:11 PM, Erling D. Andersen <
> e.d.andersen at mosek.com> wrote:
>
>> Hi
>>
>> Assume you have
>>
>>     env['MYVAR'] = 'something'
>>
>> then is env['MYVAR'] hashed into the signature of the targets?
>>
>>
>> [Background info:
>>
>> Note we have several builders that are Python scripts that uses the env
>> as a source i.e. variables in the env. So if env['MYVAR'] is not hashed
>> into the signature then things does not get rebuild as we hoped they
>> should.]
>>
>>
>> --
>> Erling D. Andersen
>>
>> MOSEK APS
>> Fruebjergvej 3,
>> Symbion Science Park Box 16,
>> DK-2100 Copenhagen O
>>
>> Ph: +45 7174 9373 <+45%2071%2074%2093%2073>
>> Mo: +45 2362 9520 <+45%2023%2062%2095%2020>
>>
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://pairlist4.pair.net/mailman/listinfo/scons-users
>>
>>
> _______________________________________________
> Scons-users mailing listScons-users at scons.orghttps://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>


-- 
Erling D. Andersen

MOSEK APS
Fruebjergvej 3,
Symbion Science Park Box 16,
DK-2100 Copenhagen O

Ph: +45 7174 9373
Mo: +45 2362 9520
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20161227/23866a48/attachment.html>


More information about the Scons-users mailing list