Remove "setup_environment" and "setup_dependent_environment" (#29463)

fixes #29446

The new setup_*_environment functions have been falling back
to calling the old functions and warn the user since #11115.

This commit removes the fallback behavior and any use of:
- setup_environment
- setup_dependent_environment
in the codebase
This commit is contained in:
Massimiliano Culpo
2022-03-13 16:51:55 +01:00
committed by GitHub
parent 406939f485
commit a6eed4a7c7
14 changed files with 33 additions and 65 deletions

View File

@@ -44,7 +44,7 @@ def libs(self):
build_directory = 'spack-build'
def setup_environment(self, spack_env, run_env):
def setup_run_environment(self, env):
# TUTORIAL: set the following environment variables:
#
# CC=spec['mpi'].mpicc

View File

@@ -75,7 +75,7 @@ class Mpich(AutotoolsPackage):
conflicts('netmod=mxm', when='@:3.1.3')
conflicts('netmod=tcp', when='device=ch4')
def setup_dependent_environment(self, spack_env, run_env, dependent_spec):
def setup_dependent_build_environment(self, env, dependent_spec):
# TUTORIAL: set the following variables for dependents:
#
# MPICC=join_path(self.prefix.bin, 'mpicc')