summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarmen Stoppels <harmenstoppels@gmail.com>2021-03-30 13:41:34 +0200
committerTodd Gamblin <tgamblin@llnl.gov>2021-05-22 11:51:20 -0700
commitcbd55332e37ccc21bc2399bb638cfe87f9d897b2 (patch)
tree7f880a78bb827e09f3b0eae9b47bee66fa6e30eb
parentc8a10e4910f8222e34b22b2e37c26ace4bae968f (diff)
downloadspack-cbd55332e37ccc21bc2399bb638cfe87f9d897b2.tar.gz
spack-cbd55332e37ccc21bc2399bb638cfe87f9d897b2.tar.bz2
spack-cbd55332e37ccc21bc2399bb638cfe87f9d897b2.tar.xz
spack-cbd55332e37ccc21bc2399bb638cfe87f9d897b2.zip
Bootstrap: add _builtin config scope (#22610)
(cherry picked from commit a37c916dff5a5c6e72f939433931ab69dfd731bd)
-rw-r--r--lib/spack/spack/bootstrap.py7
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