Mass conversion of setup_(dependent_)?environment (#13924)

* Mass conversion of setup_(dependent_)?environment

* prefix -> self.prefix
This commit is contained in:
Adam J. Stewart
2019-11-29 15:00:44 -06:00
committed by GitHub
parent 92ca639905
commit ab98ef1765
188 changed files with 814 additions and 826 deletions

View File

@@ -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 = [