summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-10-27 13:38:42 -0400
committerscheibelp <scheibel1@llnl.gov>2017-11-02 18:45:40 -0700
commita81485cb3fa7972549e2163a96cb11fb41088723 (patch)
treedfb5e67412bc0ed7afc5537435b71a5d03bbee3c /var
parent643a28aac5d370172a4350a1c0dae642d516398e (diff)
downloadspack-a81485cb3fa7972549e2163a96cb11fb41088723.tar.gz
spack-a81485cb3fa7972549e2163a96cb11fb41088723.tar.bz2
spack-a81485cb3fa7972549e2163a96cb11fb41088723.tar.xz
spack-a81485cb3fa7972549e2163a96cb11fb41088723.zip
perl: support extensions in views
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/perl/package.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/var/spack/repos/builtin/packages/perl/package.py b/var/spack/repos/builtin/packages/perl/package.py
index d54f5efff8..a23f8ce5b0 100644
--- a/var/spack/repos/builtin/packages/perl/package.py
+++ b/var/spack/repos/builtin/packages/perl/package.py
@@ -256,7 +256,10 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package
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
def deactivate(self, ext_pkg, **args):
@@ -265,7 +268,10 @@ class Perl(Package): # Perl doesn't use Autotools, it should subclass Package
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
if ext_pkg.name in exts:
del exts[ext_pkg.name]