summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDenis Davydov <davydden@gmail.com>2016-03-22 11:44:38 +0100
committerDenis Davydov <davydden@gmail.com>2016-03-22 22:12:01 +0100
commit27f337aa11104a6e625db6e40f8d9414954123ee (patch)
treee27b88cb03902adf0552c73eb678e32700fc9df2 /var
parent2d69f386d03fb1c13488c08583177c322b3e7b8c (diff)
downloadspack-27f337aa11104a6e625db6e40f8d9414954123ee.tar.gz
spack-27f337aa11104a6e625db6e40f8d9414954123ee.tar.bz2
spack-27f337aa11104a6e625db6e40f8d9414954123ee.tar.xz
spack-27f337aa11104a6e625db6e40f8d9414954123ee.zip
petsc: set PETSC_DIR in dependent_env
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/petsc/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/petsc/package.py b/var/spack/repos/builtin/packages/petsc/package.py
index 7239baaf7f..3dd117eed1 100644
--- a/var/spack/repos/builtin/packages/petsc/package.py
+++ b/var/spack/repos/builtin/packages/petsc/package.py
@@ -100,3 +100,7 @@ class Petsc(Package):
# PETSc has its own way of doing parallel make.
make('MAKE_NP=%s' % make_jobs, parallel=False)
make("install")
+
+ def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
+ # set up PETSC_DIR for everyone using PETSc package
+ spack_env.set('PETSC_DIR', self.prefix)