summaryrefslogtreecommitdiff
path: root/COPYRIGHT
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2019-04-10 16:00:12 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-04-10 16:00:12 -0700
commitea1de6b941c1eb9eec70f970cc363c6e35d08edf (patch)
treea3033d81ec9c99a816a0c4f450da44782efa24b7 /COPYRIGHT
parent8f1ebfc73cb4926c71f87df6f10cf82814c95821 (diff)
downloadspack-ea1de6b941c1eb9eec70f970cc363c6e35d08edf.tar.gz
spack-ea1de6b941c1eb9eec70f970cc363c6e35d08edf.tar.bz2
spack-ea1de6b941c1eb9eec70f970cc363c6e35d08edf.tar.xz
spack-ea1de6b941c1eb9eec70f970cc363c6e35d08edf.zip
Maintain a view for an environment (#10017)
Environments are nowm by default, created with views. When activated, if an environment includes a view, this view will be added to `PATH`, `CPATH`, and other shell variables to expose the Spack environment in the user's shell. Example: ``` spack env create e1 #by default this will maintain a view in the directory Spack maintains for the env spack env create e1 --with-view=/abs/path/to/anywhere spack env create e1 --without-view ``` The `spack.yaml` manifest file now looks like this: ``` spack: specs: - python view: true #or false, or a string ``` These commands can be used to control the view configuration for the active environment, without hand-editing the `spack.yaml` file: ``` spack env view enable spack env view envable /abs/path/to/anywhere spack env view disable ``` Views are automatically updated when specs are installed to an environment. A view only maintains one copy of any package. An environment may refer to a package multiple times, in particular if it appears as a dependency. This PR establishes a prioritization for which environment specs are added to views: a spec has higher priority if it was concretized first. This does not necessarily exactly match the order in which specs were added, for example, given `X->Z` and `Y->Z'`: ``` spack env activate e1 spack add X spack install Y # immediately concretizes and installs Y and Z' spack install # concretizes X and Z ``` In this case `Z'` will be favored over `Z`. Specs in the environment must be concrete and installed to be added to the view, so there is another minor ordering effect: by default the view maintained for the environment ignores file conflicts between packages. If packages are not installed in order, and there are file conflicts, then the version chosen depends on the order. Both ordering issues are avoided if `spack install`/`spack add` and `spack install <spec>` are not mixed.
Diffstat (limited to 'COPYRIGHT')
0 files changed, 0 insertions, 0 deletions