[Scons-users] scons and module files

John Robinson jsrobin at gmail.com
Mon Mar 14 17:02:39 EDT 2016


What is the appropriate manner to use SCons in the context of a "module"
environment (http://modules.sourceforge.net/).

I know that one strategy is to just initialize the SConstruct environment
with the command:
env = Environment(ENV = os.environ)
after loading the appropriate module files.

Naturally, this kills the "Environment independent" build feature of SCons.
In particular, the "builder" may have almost any type of "overrides"
occurring in his Linux startup environment after the modules have been
loaded.

Is it possible for a SConstruct file to start off by "sourcing" "module
load" and "module unload" commands and then continuing execution with a
repeatable "os.environ".

Alternatively, is there an easy for for SConstruct to create a subshell
initialized with the selected module commands, and then invoke an
appropriate "SConstruct" to continue the build.


Any and all comments and help would be appreciated on this issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160314/2890408c/attachment.html>


More information about the Scons-users mailing list