a92f1e37aa
* Disable module generation by default (#35564) a) It's used by site administrators, so it's niche b) If it's used by site administrators, they likely need to modify the config anyhow, so the default config only serves as an example to get started c) it's too arbitrary to enable tcl, but disable lmod * Remove leftover from old module file schema * Warn if module file config is detected and generation is disabled --------- Co-authored-by: Harmen Stoppels <harmenstoppels@gmail.com>
55 lines
1.5 KiB
YAML
55 lines
1.5 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:
|
|
# This maps paths in the package install prefix to environment variables
|
|
# they should be added to. For example, <prefix>/bin should be in PATH.
|
|
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 ("tcl" and/or "lmod")
|
|
enable: []
|
|
|
|
tcl:
|
|
all:
|
|
autoload: direct
|
|
|
|
# Default configurations if lmod is enabled
|
|
lmod:
|
|
all:
|
|
autoload: direct
|
|
hierarchy:
|
|
- mpi
|