Do not automatically activate extensions on install.
This commit is contained in:
@@ -26,15 +26,11 @@
|
|||||||
import spack
|
import spack
|
||||||
|
|
||||||
|
|
||||||
def post_install(pkg):
|
|
||||||
if pkg.is_extension:
|
|
||||||
pkg.do_activate()
|
|
||||||
|
|
||||||
|
|
||||||
def pre_uninstall(pkg):
|
def pre_uninstall(pkg):
|
||||||
# Need to do this b/c uninstall does not automatically do it.
|
# Need to do this b/c uninstall does not automatically do it.
|
||||||
# TODO: store full graph info in stored .spec file.
|
# TODO: store full graph info in stored .spec file.
|
||||||
pkg.spec.normalize()
|
pkg.spec.normalize()
|
||||||
|
|
||||||
if pkg.is_extension:
|
if pkg.is_extension:
|
||||||
|
if pkg.activated:
|
||||||
pkg.do_deactivate()
|
pkg.do_deactivate()
|
||||||
|
Reference in New Issue
Block a user