Mass conversion of setup_(dependent_)?environment (#13924)
* Mass conversion of setup_(dependent_)?environment * prefix -> self.prefix
This commit is contained in:
@@ -26,19 +26,19 @@ class Blasr(Package):
|
||||
|
||||
phases = ['configure', 'build', 'install']
|
||||
|
||||
def setup_environment(self, spack_env, run_env):
|
||||
run_env.prepend_path('PATH', self.spec.prefix.utils)
|
||||
spack_env.prepend_path('CPATH', self.spec['blasr-libcpp'].prefix)
|
||||
spack_env.prepend_path('CPATH', self.spec[
|
||||
'blasr-libcpp'].prefix.pbdata)
|
||||
spack_env.prepend_path('CPATH', self.spec[
|
||||
'blasr-libcpp'].prefix.alignment)
|
||||
spack_env.prepend_path('CPATH', self.spec['blasr-libcpp'].prefix.hdf)
|
||||
def setup_build_environment(self, env):
|
||||
env.prepend_path('CPATH', self.spec['blasr-libcpp'].prefix)
|
||||
env.prepend_path('CPATH', self.spec['blasr-libcpp'].prefix.pbdata)
|
||||
env.prepend_path('CPATH', self.spec['blasr-libcpp'].prefix.alignment)
|
||||
env.prepend_path('CPATH', self.spec['blasr-libcpp'].prefix.hdf)
|
||||
|
||||
# hdf has +mpi by default, so handle that possibility
|
||||
if ('+mpi' in self.spec['hdf5']):
|
||||
spack_env.set('CC', self.spec['mpi'].mpicc)
|
||||
spack_env.set('CXX', self.spec['mpi'].mpicxx)
|
||||
env.set('CC', self.spec['mpi'].mpicc)
|
||||
env.set('CXX', self.spec['mpi'].mpicxx)
|
||||
|
||||
def setup_run_environment(self, env):
|
||||
env.prepend_path('PATH', self.spec.prefix.utils)
|
||||
|
||||
def configure(self, spec, prefix):
|
||||
configure_args = [
|
||||
|
||||
Reference in New Issue
Block a user