
* Ignore top-level module config; add auto-update In Spack 0.17 we got module sets (modules:[name]:[prop]), and for backwards compat modules:[prop] was short for modules:default:[prop]. But this makes it awkward to define default config for the "default" module set. Since 0.17 is branched off, we can now deprecate top-level module config (that is, just ignore it with a warning). This PR does that, and it implements `spack config update modules` to make upgrading easy (we should have added that to 0.17 already...) It also removes references to `dotkit` stuff which was already deprecated in 0.13 and could have been removed in 0.14. Prefix inspections are the only exception, since the top-level prefix inspections used for `spack load` and `spack env activate`.
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
# -------------------------------------------------------------------------
|
|
# This is the default configuration for Spack's module file generation.
|
|
#
|
|
# Settings here are versioned with Spack and are intended to provide
|
|
# sensible defaults out of the box. Spack maintainers should edit this
|
|
# file to keep it current.
|
|
#
|
|
# Users can override these settings by editing the following files.
|
|
#
|
|
# Per-spack-instance settings (overrides defaults):
|
|
# $SPACK_ROOT/etc/spack/modules.yaml
|
|
#
|
|
# Per-user settings (overrides default and site settings):
|
|
# ~/.spack/modules.yaml
|
|
# -------------------------------------------------------------------------
|
|
modules:
|
|
# Paths to check when creating modules for all module sets
|
|
prefix_inspections:
|
|
bin:
|
|
- PATH
|
|
man:
|
|
- MANPATH
|
|
share/man:
|
|
- MANPATH
|
|
share/aclocal:
|
|
- ACLOCAL_PATH
|
|
lib/pkgconfig:
|
|
- PKG_CONFIG_PATH
|
|
lib64/pkgconfig:
|
|
- PKG_CONFIG_PATH
|
|
share/pkgconfig:
|
|
- PKG_CONFIG_PATH
|
|
'':
|
|
- CMAKE_PREFIX_PATH
|
|
|
|
# These are configurations for the module set named "default"
|
|
default:
|
|
# Where to install modules
|
|
roots:
|
|
tcl: $spack/share/spack/modules
|
|
lmod: $spack/share/spack/lmod
|
|
# What type of modules to use
|
|
enable:
|
|
- tcl
|
|
|
|
tcl:
|
|
all:
|
|
autoload: none
|
|
|
|
# Default configurations if lmod is enabled
|
|
lmod:
|
|
all:
|
|
autoload: direct
|
|
hierarchy:
|
|
- mpi
|