diff options
author | Mark Olesen <Mark.Olesen@gmx.net> | 2017-12-14 20:24:06 +0000 |
---|---|---|
committer | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2017-12-14 21:24:06 +0100 |
commit | 5727054c4a3255b344262967493d39d3558701f4 (patch) | |
tree | 24b1295b07225b3df16cf5620ccc65bcdf116358 /var | |
parent | b447c2ba51f57826980703e4efa1a7a15e98faed (diff) | |
download | spack-5727054c4a3255b344262967493d39d3558701f4.tar.gz spack-5727054c4a3255b344262967493d39d3558701f4.tar.bz2 spack-5727054c4a3255b344262967493d39d3558701f4.tar.xz spack-5727054c4a3255b344262967493d39d3558701f4.zip |
misc fixes, changed to EnvironmentModifications (issue #6501) (#6541)
* Support pruning of vars with Env from_sourcing_file (issue #6501)
- Blacklist string literals or regular expressions of environment
variables that are to be removed from consideration as being affect
by the sourcing of the file. Conversely, whitelist modifications
that should not ignored. Whitelisted variables have priority over
blacklisting.
Eg,
EnvironmentModifications.from_sourcing_file
(
bashrc
blacklist=['JUNK_ENV', 'OPTIONAL_.*'],
whitelist=['OPTIONAL_REQUIRED.*']
)
This modification can be used to eliminate environment variables that
are not generalized for modules (eg, user-specific variables).
* BUG: module prepend-path in wrong order (fixes #6501)
* STYLE: module variables in sorted order (issue #6501)
- looks nicer and also helps when comparing the contents of different
module files.
* ENH: remove duplicates from env paths when creating modules (issue #6501)
- this makes for a cleaner module environment and helps avoid some
unnecessary changes to the environment that are only provoked by
redundancies in the PATH.
eg,
before PATH=/usr/bin
after PATH=/usr/bin:/usr/bin:/my/application/bin
should only result in /my/application/bin being added to the PATH
and not /usr/bin:/my/application/bin
Activate via the 'clean' flag (default: False):
EnvironmentModifications.from_sourcing_file(bashrc, clean=True,..
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions