petsc: set PETSC_DIR in dependent_env
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user