summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/hooks/extensions.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/spack/spack/hooks/extensions.py b/lib/spack/spack/hooks/extensions.py
index 2cf506beed..718b24b965 100644
--- a/lib/spack/spack/hooks/extensions.py
+++ b/lib/spack/spack/hooks/extensions.py
@@ -27,7 +27,8 @@ import spack
def post_install(pkg):
- pkg.do_activate()
+ if pkg.is_extension:
+ pkg.do_activate()
def pre_uninstall(pkg):
@@ -35,4 +36,5 @@ def pre_uninstall(pkg):
# TODO: store full graph info in stored .spec file.
pkg.spec.normalize()
- pkg.do_deactivate()
+ if pkg.is_extension:
+ pkg.do_deactivate()