Do not automatically activate extensions on install.
This commit is contained in:
parent
a9e189972a
commit
3a3e4d4391
1 changed files with 2 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue