diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-02-04 15:47:03 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-02-04 15:47:03 -0800 |
commit | 3a3e4d4391977327bca18c416205971dd6a85509 (patch) | |
tree | c1d1693b315bf3dd0860aa2a126aa9bba01895ed | |
parent | a9e189972a547fb5f7996f0f5acafc1200702b72 (diff) | |
download | spack-3a3e4d4391977327bca18c416205971dd6a85509.tar.gz spack-3a3e4d4391977327bca18c416205971dd6a85509.tar.bz2 spack-3a3e4d4391977327bca18c416205971dd6a85509.tar.xz spack-3a3e4d4391977327bca18c416205971dd6a85509.zip |
Do not automatically activate extensions on install.
-rw-r--r-- | lib/spack/spack/hooks/extensions.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/spack/spack/hooks/extensions.py b/lib/spack/spack/hooks/extensions.py index 718b24b965..9d6fa23d03 100644 --- a/lib/spack/spack/hooks/extensions.py +++ b/lib/spack/spack/hooks/extensions.py @@ -26,15 +26,11 @@ import spack -def post_install(pkg): - if pkg.is_extension: - pkg.do_activate() - - def pre_uninstall(pkg): # Need to do this b/c uninstall does not automatically do it. # TODO: store full graph info in stored .spec file. pkg.spec.normalize() if pkg.is_extension: - pkg.do_deactivate() + if pkg.activated: + pkg.do_deactivate() |