Update packages.yaml format and support configuration updates
The YAML config for paths and modules of external packages has changed: the new format allows a single spec to load multiple modules. Spack will automatically convert from the old format when reading the configs (the updates do not add new essential properties, so this change in Spack is backwards-compatible). With this update, Spack cannot modify existing configs/environments without updating them (e.g. “spack config add” will fail if the configuration is in a format that predates this PR). The user is prompted to do this explicitly and commands are provided. All config scopes can be updated at once. Each environment must be updated one at a time.
Showing
- etc/spack/defaults/darwin/packages.yaml 8 additions, 5 deletionsetc/spack/defaults/darwin/packages.yaml
- lib/spack/docs/build_settings.rst 33 additions, 21 deletionslib/spack/docs/build_settings.rst
- lib/spack/docs/build_systems/intelpackage.rst 21 additions, 11 deletionslib/spack/docs/build_systems/intelpackage.rst
- lib/spack/docs/getting_started.rst 38 additions, 19 deletionslib/spack/docs/getting_started.rst
- lib/spack/docs/workflows.rst 3 additions, 2 deletionslib/spack/docs/workflows.rst
- lib/spack/llnl/util/filesystem.py 31 additions, 4 deletionslib/spack/llnl/util/filesystem.py
- lib/spack/spack/build_environment.py 5 additions, 4 deletionslib/spack/spack/build_environment.py
- lib/spack/spack/cmd/config.py 178 additions, 9 deletionslib/spack/spack/cmd/config.py
- lib/spack/spack/cmd/env.py 78 additions, 0 deletionslib/spack/spack/cmd/env.py
- lib/spack/spack/cmd/external.py 25 additions, 8 deletionslib/spack/spack/cmd/external.py
- lib/spack/spack/config.py 67 additions, 2 deletionslib/spack/spack/config.py
- lib/spack/spack/environment.py 99 additions, 0 deletionslib/spack/spack/environment.py
- lib/spack/spack/installer.py 2 additions, 2 deletionslib/spack/spack/installer.py
- lib/spack/spack/package_prefs.py 16 additions, 17 deletionslib/spack/spack/package_prefs.py
- lib/spack/spack/schema/__init__.py 6 additions, 2 deletionslib/spack/spack/schema/__init__.py
- lib/spack/spack/schema/env.py 22 additions, 0 deletionslib/spack/spack/schema/env.py
- lib/spack/spack/schema/packages.py 56 additions, 9 deletionslib/spack/spack/schema/packages.py
- lib/spack/spack/spec.py 63 additions, 21 deletionslib/spack/spack/spec.py
- lib/spack/spack/test/cmd/ci.py 4 additions, 8 deletionslib/spack/spack/test/cmd/ci.py
- lib/spack/spack/test/cmd/config.py 132 additions, 8 deletionslib/spack/spack/test/cmd/config.py
Loading
Please register or sign in to comment