petsc: set PETSC_DIR in dependent_env
This commit is contained in:
parent
2d69f386d0
commit
27f337aa11
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user