From 4e12cab9e368d6ccec359931efea1f8481edffb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Lacroix?= Date: Wed, 6 Jan 2021 20:05:35 +0100 Subject: [PATCH] SLEPc: Set SLEPC_DIR in the module file. (#20698) --- var/spack/repos/builtin/packages/slepc/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/var/spack/repos/builtin/packages/slepc/package.py b/var/spack/repos/builtin/packages/slepc/package.py index d4d81627ec..a061547b8a 100644 --- a/var/spack/repos/builtin/packages/slepc/package.py +++ b/var/spack/repos/builtin/packages/slepc/package.py @@ -125,6 +125,10 @@ def install(self, spec, prefix): make('install', parallel=False) + def setup_run_environment(self, env): + # set SLEPC_DIR in the module file + env.set('SLEPC_DIR', self.prefix) + def setup_dependent_build_environment(self, env, dependent_spec): # set up SLEPC_DIR for everyone using SLEPc package env.set('SLEPC_DIR', self.prefix)