improve install output
This commit is contained in:
parent
43c8bb9fa3
commit
95b9be2c14
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
@ -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()))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user