perl: support extensions in views
This commit is contained in:
parent
643a28aac5
commit
a81485cb3f
@ -256,7 +256,10 @@ def activate(self, ext_pkg, **args):
|
|||||||
|
|
||||||
super(Perl, self).activate(ext_pkg, **args)
|
super(Perl, self).activate(ext_pkg, **args)
|
||||||
|
|
||||||
exts = spack.store.layout.extension_map(self.spec)
|
extensions_layout = args.get("extensions_layout",
|
||||||
|
spack.store.extensions)
|
||||||
|
|
||||||
|
exts = extensions_layout.extension_map(self.spec)
|
||||||
exts[ext_pkg.name] = ext_pkg.spec
|
exts[ext_pkg.name] = ext_pkg.spec
|
||||||
|
|
||||||
def deactivate(self, ext_pkg, **args):
|
def deactivate(self, ext_pkg, **args):
|
||||||
@ -265,7 +268,10 @@ def deactivate(self, ext_pkg, **args):
|
|||||||
|
|
||||||
super(Perl, self).deactivate(ext_pkg, **args)
|
super(Perl, self).deactivate(ext_pkg, **args)
|
||||||
|
|
||||||
exts = spack.store.layout.extension_map(self.spec)
|
extensions_layout = args.get("extensions_layout",
|
||||||
|
spack.store.extensions)
|
||||||
|
|
||||||
|
exts = extensions_layout.extension_map(self.spec)
|
||||||
# Make deactivate idempotent
|
# Make deactivate idempotent
|
||||||
if ext_pkg.name in exts:
|
if ext_pkg.name in exts:
|
||||||
del exts[ext_pkg.name]
|
del exts[ext_pkg.name]
|
||||||
|
Loading…
Reference in New Issue
Block a user