petsc: set PETSC_DIR in dependent_env

This commit is contained in:
Denis Davydov 2016-03-22 11:44:38 +01:00
parent 2d69f386d0
commit 27f337aa11

View File

@ -100,3 +100,7 @@ def install(self, spec, prefix):
# 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)