diff --git a/lib/spack/spack/installer.py b/lib/spack/spack/installer.py index c13c7c94165..540325a5412 100644 --- a/lib/spack/spack/installer.py +++ b/lib/spack/spack/installer.py @@ -1268,12 +1268,14 @@ def execute(self, install_status): install_args = self.request.install_args unsigned = install_args.get("unsigned") binary_distribution.install_root_node(self.pkg.spec, unsigned=unsigned) + _print_installed_pkg(self.pkg.prefix) return ExecuteResult.SUCCESS except BaseException as e: tty.debug(f"Failed to rewire {self.pkg.spec} from binary. {e}") self.status = oldstatus return ExecuteResult.MISSING_BUILD_SPEC spack.rewiring.rewire_node(self.pkg.spec, self.explicit) + _print_installed_pkg(self.pkg.prefix) return ExecuteResult.SUCCESS diff --git a/lib/spack/spack/rewiring.py b/lib/spack/spack/rewiring.py index 0bb11a1b0dd..74caaa250c2 100644 --- a/lib/spack/spack/rewiring.py +++ b/lib/spack/spack/rewiring.py @@ -52,7 +52,7 @@ def rewire_node(spec, explicit): its subgraph. Binaries, text, and links are all changed in accordance with the splice. The resulting package is then 'installed.'""" tempdir = tempfile.mkdtemp() - print("rewire called") + # copy anything installed to a temporary directory shutil.copytree(spec.build_spec.prefix, os.path.join(tempdir, spec.dag_hash()))