diff options
author | Harmen Stoppels <harmenstoppels@gmail.com> | 2021-03-30 13:41:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 13:41:34 +0200 |
commit | a37c916dff5a5c6e72f939433931ab69dfd731bd (patch) | |
tree | 3b2abb30d6f5ac4fd6ed87dafd832b0a77dbb812 /lib | |
parent | 2a4c06b1e690e0d6c54d87ef16e7ae309d15db03 (diff) | |
download | spack-a37c916dff5a5c6e72f939433931ab69dfd731bd.tar.gz spack-a37c916dff5a5c6e72f939433931ab69dfd731bd.tar.bz2 spack-a37c916dff5a5c6e72f939433931ab69dfd731bd.tar.xz spack-a37c916dff5a5c6e72f939433931ab69dfd731bd.zip |
Bootstrap: add _builtin config scope (#22610)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/bootstrap.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/spack/spack/bootstrap.py b/lib/spack/spack/bootstrap.py index 3d51ca931e..ff4ddedef5 100644 --- a/lib/spack/spack/bootstrap.py +++ b/lib/spack/spack/bootstrap.py @@ -196,7 +196,10 @@ def get_executable(exe, spec=None, install=False): def _bootstrap_config_scopes(): - config_scopes = [] + tty.debug('[BOOTSTRAP CONFIG SCOPE] name=_builtin') + config_scopes = [ + spack.config.InternalConfigScope('_builtin', spack.config.config_defaults) + ] for name, path in spack.config.configuration_paths: platform = spack.architecture.platform().name platform_scope = spack.config.ConfigScope( @@ -204,7 +207,7 @@ def _bootstrap_config_scopes(): ) generic_scope = spack.config.ConfigScope(name, path) config_scopes.extend([generic_scope, platform_scope]) - msg = '[BOOSTRAP CONFIG SCOPE] name={0}, path={1}' + msg = '[BOOTSTRAP CONFIG SCOPE] name={0}, path={1}' tty.debug(msg.format(generic_scope.name, generic_scope.path)) tty.debug(msg.format(platform_scope.name, platform_scope.path)) return config_scopes |