From cbd55332e37ccc21bc2399bb638cfe87f9d897b2 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Tue, 30 Mar 2021 13:41:34 +0200 Subject: Bootstrap: add _builtin config scope (#22610) (cherry picked from commit a37c916dff5a5c6e72f939433931ab69dfd731bd) --- lib/spack/spack/bootstrap.py | 7 +++++-- 1 file 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 -- cgit v1.2.3-70-g09d2