diff options
author | Denis Davydov <davydden@gmail.com> | 2016-03-22 11:44:38 +0100 |
---|---|---|
committer | Denis Davydov <davydden@gmail.com> | 2016-03-22 22:12:01 +0100 |
commit | 27f337aa11104a6e625db6e40f8d9414954123ee (patch) | |
tree | e27b88cb03902adf0552c73eb678e32700fc9df2 /var | |
parent | 2d69f386d03fb1c13488c08583177c322b3e7b8c (diff) | |
download | spack-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.py | 4 |
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) |