diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-27 11:47:20 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2016-03-27 11:47:20 -0700 |
commit | e049fc2840ba81cdff2ca7edd798c5e961ae94e9 (patch) | |
tree | dd808c314692fca14bcc893dc441a52c079e639a /lib | |
parent | 66bb71534b3ab7eaf7b27743efc0ecf9763e4982 (diff) | |
download | spack-e049fc2840ba81cdff2ca7edd798c5e961ae94e9.tar.gz spack-e049fc2840ba81cdff2ca7edd798c5e961ae94e9.tar.bz2 spack-e049fc2840ba81cdff2ca7edd798c5e961ae94e9.tar.xz spack-e049fc2840ba81cdff2ca7edd798c5e961ae94e9.zip |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/package.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index 9af3221837..c17bec4a14 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -926,6 +926,9 @@ class Package(object): 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 @@ class Package(object): # 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.""" |