[Scons-users] Enhancement request 2957: Set site_scons using an envrionment variable
Matthew Swabey
matthew at swabey.org
Thu Jun 26 21:35:15 EDT 2014
Apologies for "chatting" on the enhancement request.
The situation I find myself in is this:
1 repo holds HDL files, some reference libraries, a local copy of scons
2.3.1 and lots of individual modules of HDL representing bus structures,
CPUs, etc.
Each of the modules of HDL has a top level SConstruct that calls
SConstructs to build that module and other modules as necessary to run the
testbenches. This means a particular SConscript may be referenced by
several SConstruct's.
This gives rise to 12 different SConstruct files at different levels in the
repo's directory hierarchy.
As I am shipping a local copy of SCons so I don't have to rely on the
packaged version (Redhat 6 is shipping 2.0.1 for example) I can't install
the HDL tools into the site directory.
I don't want to get the user to copy the tools to .scons/ as I want to have
the HDL tools managed by the repo for new features and bugfixes.
Currently I have added the path to the tools to each SConscript file but
each file ends up with very similar code that isn't quite the same
depending on hierarchy. I would very much like to set an environment
variable once and then forget about it rather than maintain 12 (and
growing) sets of code in SConscripts.
[Thanks for making an awesome product - I am using ModelSim from Mentor GFX
and that builds multiple files into a directory "work" library. This makes
Make an incredible pain to use. SCons works very well although I have to
use .stamp files to keep track of individual deps and recompile as needed.]
Matthew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140626/73873770/attachment.html>
More information about the Scons-users
mailing list