diff options
author | Massimiliano Culpo <massimiliano.culpo@googlemail.com> | 2017-04-25 21:54:53 +0200 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-04-25 12:54:53 -0700 |
commit | fc9896ed45afe1b5ec228ed3ceb2b27ea2a1854c (patch) | |
tree | 5973323f784f3446ba3143d67bbc6b250becee9e /lib/spack/spack/hooks/__init__.py | |
parent | 58f2a947db98bdecb061133a7b6780fa405fbd33 (diff) | |
download | spack-fc9896ed45afe1b5ec228ed3ceb2b27ea2a1854c.tar.gz spack-fc9896ed45afe1b5ec228ed3ceb2b27ea2a1854c.tar.bz2 spack-fc9896ed45afe1b5ec228ed3ceb2b27ea2a1854c.tar.xz spack-fc9896ed45afe1b5ec228ed3ceb2b27ea2a1854c.zip |
hooks take spec as an argument (instead of pkg) (#3967)
Diffstat (limited to 'lib/spack/spack/hooks/__init__.py')
-rw-r--r-- | lib/spack/spack/hooks/__init__.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/spack/spack/hooks/__init__.py b/lib/spack/spack/hooks/__init__.py index 6454a865b6..9ed04a4768 100644 --- a/lib/spack/spack/hooks/__init__.py +++ b/lib/spack/spack/hooks/__init__.py @@ -31,10 +31,11 @@ Currently the following hooks are supported: - * pre_install() - * post_install() - * pre_uninstall() - * post_uninstall() + * pre_run() + * pre_install(spec) + * post_install(spec) + * pre_uninstall(spec) + * post_uninstall(spec) This can be used to implement support for things like module systems (e.g. modules, dotkit, etc.) or to add other custom |