Bootstrap: add _builtin config scope (#22610)
(cherry picked from commit a37c916dff
)
This commit is contained in:
parent
c8a10e4910
commit
cbd55332e3
@ -196,7 +196,10 @@ def _raise_error(executable, exe_spec):
|
|||||||
|
|
||||||
|
|
||||||
def _bootstrap_config_scopes():
|
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:
|
for name, path in spack.config.configuration_paths:
|
||||||
platform = spack.architecture.platform().name
|
platform = spack.architecture.platform().name
|
||||||
platform_scope = spack.config.ConfigScope(
|
platform_scope = spack.config.ConfigScope(
|
||||||
@ -204,7 +207,7 @@ def _bootstrap_config_scopes():
|
|||||||
)
|
)
|
||||||
generic_scope = spack.config.ConfigScope(name, path)
|
generic_scope = spack.config.ConfigScope(name, path)
|
||||||
config_scopes.extend([generic_scope, platform_scope])
|
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(generic_scope.name, generic_scope.path))
|
||||||
tty.debug(msg.format(platform_scope.name, platform_scope.path))
|
tty.debug(msg.format(platform_scope.name, platform_scope.path))
|
||||||
return config_scopes
|
return config_scopes
|
||||||
|
Loading…
Reference in New Issue
Block a user