improve install output

This commit is contained in:
Gregory Becker 2024-07-10 14:31:58 -07:00
parent 43c8bb9fa3
commit 95b9be2c14
2 changed files with 3 additions and 1 deletions

View File

@ -1268,12 +1268,14 @@ def execute(self, install_status):
install_args = self.request.install_args install_args = self.request.install_args
unsigned = install_args.get("unsigned") unsigned = install_args.get("unsigned")
binary_distribution.install_root_node(self.pkg.spec, unsigned=unsigned) binary_distribution.install_root_node(self.pkg.spec, unsigned=unsigned)
_print_installed_pkg(self.pkg.prefix)
return ExecuteResult.SUCCESS return ExecuteResult.SUCCESS
except BaseException as e: except BaseException as e:
tty.debug(f"Failed to rewire {self.pkg.spec} from binary. {e}") tty.debug(f"Failed to rewire {self.pkg.spec} from binary. {e}")
self.status = oldstatus self.status = oldstatus
return ExecuteResult.MISSING_BUILD_SPEC return ExecuteResult.MISSING_BUILD_SPEC
spack.rewiring.rewire_node(self.pkg.spec, self.explicit) spack.rewiring.rewire_node(self.pkg.spec, self.explicit)
_print_installed_pkg(self.pkg.prefix)
return ExecuteResult.SUCCESS return ExecuteResult.SUCCESS

View File

@ -52,7 +52,7 @@ def rewire_node(spec, explicit):
its subgraph. Binaries, text, and links are all changed in accordance with its subgraph. Binaries, text, and links are all changed in accordance with
the splice. The resulting package is then 'installed.'""" the splice. The resulting package is then 'installed.'"""
tempdir = tempfile.mkdtemp() tempdir = tempfile.mkdtemp()
print("rewire called")
# copy anything installed to a temporary directory # copy anything installed to a temporary directory
shutil.copytree(spec.build_spec.prefix, os.path.join(tempdir, spec.dag_hash())) shutil.copytree(spec.build_spec.prefix, os.path.join(tempdir, spec.dag_hash()))