Inform the user about bootstrapping (#25964)

This commit is contained in:
Harmen Stoppels 2021-09-16 09:28:24 +02:00 committed by GitHub
parent c0122242ee
commit 3fe9b34362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,6 +182,8 @@ def try_import(self, module, abstract_spec_str):
if _try_import_from_store(module, abstract_spec_str):
return True
tty.info("Bootstrapping {0} from pre-built binaries".format(module))
# Try to install from an unsigned binary cache
abstract_spec = spack.spec.Spec(
abstract_spec_str + ' ^' + spec_for_current_python()
@ -289,6 +291,7 @@ def try_import(module, abstract_spec_str):
msg = "[BOOTSTRAP MODULE {0}] Try installing '{1}' from sources"
tty.debug(msg.format(module, abstract_spec_str))
tty.info("Bootstrapping {0} from sources".format(module))
# Install the spec that should make the module importable
concrete_spec.package.do_install()