[Scons-users] SCons Environments and ENV
Bill Deegan
bill at baddogconsulting.com
Sat Jun 6 12:30:10 EDT 2020
Russel,
How do you find main? via PATH? via some other env variable? "$MY_BIN/main"?
-Bill
On Sat, Jun 6, 2020 at 8:50 AM Eric Fahlgren <ericfahlgren at gmail.com> wrote:
> I too would suspect differences in the environment, I brute force this
> sort of issue:
>
> > python -c 'import os ; print(*sorted(os.environ.items()), sep="\n")' > x
> > same thing in scons > y
>
> then side-by-side diff of x and y usually coughs up the issue.
>
>
> On Sat, Jun 6, 2020 at 5:02 AM Russel Winder <russel at winder.org.uk> wrote:
>
>> Hi,
>>
>> I have an environment with the ENV set to os.environ.
>>
>> I clone the environment to create a test environment.
>>
>> I use the test environment to run a command which fails on cannot find
>> "main"
>> – there isn't one explicitly it gets generated by compile time template
>> magic
>> in D.
>>
>> I run the exact reported command on the command line and everything
>> compiles
>> fine. So there is still something different between running the command
>> in the
>> environment with ENV set and running from the command line.
>>
>> Anyone any ideas what the difference is that might cause the problem?
>>
>> --
>> Russel.
>> ===========================================
>> Dr Russel Winder t: +44 20 7585 2200
>> 41 Buckmaster Road m: +44 7770 465 077
>> London SW11 1EN, UK w: www.russel.org.uk
>>
>> _______________________________________________
>> Scons-users mailing list
>> Scons-users at scons.org
>> https://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/20200606/204795bd/attachment.html>
More information about the Scons-users
mailing list