Run post-install hoooks before build stage is removed.
- Build will properly fail when post-install hoooks fail. - Post-install hooks have a proper working directory set now.
This commit is contained in:
parent
66bb71534b
commit
e049fc2840
@ -926,6 +926,9 @@ def build_process():
|
||||
install(env_path, env_install_path)
|
||||
dump_packages(self.spec, packages_dir)
|
||||
|
||||
# Run post install hooks before build stage is removed.
|
||||
spack.hooks.post_install(self)
|
||||
|
||||
# Stop timer.
|
||||
self._total_time = time.time() - start_time
|
||||
build_time = self._total_time - self._fetch_time
|
||||
@ -954,9 +957,6 @@ def build_process():
|
||||
# the database, so that we don't need to re-read from file.
|
||||
spack.installed_db.add(self.spec, self.prefix)
|
||||
|
||||
# Once everything else is done, run post install hooks
|
||||
spack.hooks.post_install(self)
|
||||
|
||||
|
||||
def sanity_check_prefix(self):
|
||||
"""This function checks whether install succeeded."""
|
||||
|
Loading…
Reference in New Issue
Block a user