summaryrefslogtreecommitdiff
path: root/.gitignore
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2020-01-22 22:36:02 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2020-01-22 22:36:02 -0800
commitc9e01ff9d76f5e1e645b01f5021c469f436b260c (patch)
treede1eacc3b689efc0ef8cdbd8634ecc0436f3b080 /.gitignore
parent5053dfa2599a90a8b5bf69c9391fa3b8e38a7bbb (diff)
downloadspack-c9e01ff9d76f5e1e645b01f5021c469f436b260c.tar.gz
spack-c9e01ff9d76f5e1e645b01f5021c469f436b260c.tar.bz2
spack-c9e01ff9d76f5e1e645b01f5021c469f436b260c.tar.xz
spack-c9e01ff9d76f5e1e645b01f5021c469f436b260c.zip
shell support: `spack load` no longer needs modules (#14062)
Previously the `spack load` command was a wrapper around `module load`. This required some bootstrapping of modules to make `spack load` work properly. With this PR, the `spack` shell function handles the environment modifications necessary to add packages to your user environment. This removes the dependence on environment modules or lmod and removes the requirement to bootstrap spack (beyond using the setup-env scripts). Included in this PR is support for MacOS when using Apple's System Integrity Protection (SIP), which is enabled by default in modern MacOS versions. SIP clears the `LD_LIBRARY_PATH` and `DYLD_LIBRARY_PATH` variables on process startup for executables that live in `/usr` (but not '/usr/local', `/System`, `/bin`, and `/sbin` among other system locations. Spack cannot know the `LD_LIBRARY_PATH` of the calling process when executed using `/bin/sh` and `/usr/bin/python`. The `spack` shell function now manually forwards these two variables, if they are present, as `SPACK_<VAR>` and recovers those values on startup. - [x] spack load/unload no longer delegate to modules - [x] refactor user_environment modification calculations - [x] update documentation for spack load/unload Co-authored-by: Todd Gamblin <tgamblin@llnl.gov>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions