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

@@ -189,14 +189,12 @@ def install(self, spec, prefix):
make('VERBOSE=1')
make('install')
def setup_environment(self, spack_env, run_env):
def setup_run_environment(self, env):
neuron_archdir = self.get_neuron_archdir()
run_env.prepend_path('PATH', join_path(neuron_archdir, 'bin'))
run_env.prepend_path(
'LD_LIBRARY_PATH', join_path(neuron_archdir, 'lib'))
env.prepend_path('PATH', join_path(neuron_archdir, 'bin'))
env.prepend_path('LD_LIBRARY_PATH', join_path(neuron_archdir, 'lib'))
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
def setup_dependent_build_environment(self, env, dependent_spec):
neuron_archdir = self.get_neuron_archdir()
spack_env.prepend_path('PATH', join_path(neuron_archdir, 'bin'))
spack_env.prepend_path(
'LD_LIBRARY_PATH', join_path(neuron_archdir, 'lib'))
env.prepend_path('PATH', join_path(neuron_archdir, 'bin'))
env.prepend_path('LD_LIBRARY_PATH', join_path(neuron_archdir, 'lib'))