3c641c8509
This PR implements the concept of "default environment", which doesn't have to be created explicitly. The aim is to lower the barrier for adopting environments. To (create and) activate the default environment, run ``` $ spack env activate ``` This mimics the behavior of ``` $ cd ``` which brings you to your home directory. This is not a breaking change, since `spack env activate` without arguments currently errors. It is similar to the already existing `spack env activate --temp` command which always creates an env in a temporary directory, the difference is that the default environment is a managed / named environment named `default`. The name `default` is not a reserved name, it's just that `spack env activate` creates it for you if you don't have it already. With this change, you can get started with environments faster: ``` $ spack env activate [--prompt] $ spack install --add x y z ``` instead of ``` $ spack env create default ==> Created environment 'default in /Users/harmenstoppels/spack/var/spack/environments/default ==> You can activate this environment with: ==> spack env activate default $ spack env activate [--prompt] default $ spack install --add x y z ``` Notice that Spack supports switching (but not stacking) environments, so the parallel with `cd` is pretty clear: ``` $ spack env activate named_env $ spack env status ==> In environment named_env $ spack env activate $ spack env status ==> In environment default ``` |
||
---|---|---|
.. | ||
configuration | ||
bashcov | ||
completion-test.sh | ||
flake8_formatter.py | ||
run-build-tests | ||
run-shell-tests | ||
run-style-tests | ||
run-unit-tests | ||
setup-env-test.csh | ||
setup-env-test.fish | ||
setup-env-test.sh | ||
setup.sh | ||
setup_spack_installer.ps1 | ||
test-env-cfg.sh | ||
test-framework.sh | ||
validate_last_exit.ps1 | ||
vcvarsall.ps1 | ||
windows_test_setup.ps1 |