[Scons-users] env[X'] and signatures
William Blevins
wblevins001 at gmail.com
Mon Dec 26 10:45:58 EST 2016
I do also, but at one point, I got the impression (from him) that this
changed in SCons. I don't think this was supported implicitly, but it could
have been supported explicitly by adding the variable to the hash or other.
This is why I wanted to know the SCons version that "broke" this.
On Dec 26, 2016 3:44 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20161226/954ee35b/attachment.html>
More information about the Scons-users
mailing list