diff options
author | Harmen Stoppels <me@harmenstoppels.nl> | 2024-02-19 11:43:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-19 11:43:45 +0100 |
commit | 668879141f4d0ac51013ae05efbd9aadcd37930a (patch) | |
tree | 836d73786deaef80bf8c7974e2c69faa044f2746 /.flake8 | |
parent | 267defd9d30cdbc8343a925837847d11c63e4956 (diff) | |
download | spack-668879141f4d0ac51013ae05efbd9aadcd37930a.tar.gz spack-668879141f4d0ac51013ae05efbd9aadcd37930a.tar.bz2 spack-668879141f4d0ac51013ae05efbd9aadcd37930a.tar.xz spack-668879141f4d0ac51013ae05efbd9aadcd37930a.zip |
remove a few redundant calls to setup_run_environment (#42718)
Any package `X` used as `depends_on("x", type="build")` will have
`X.setup_run_environment(env)` called, because it has to be able to
"run" in the build environment.
So there is no point in calling `setup_run_environment` from
`setup_dependent_build_environment`.
Also it's redundant to call `setup_run_environment` in
`setup_dependent_run_environment`, cause (a) the latter is called _for
every parent edge_ instead of once per node, and (b) it's only called
after `setup_run_environment` is called anyways. Better to call
`setup_run_environment` once and only once.
Diffstat (limited to '.flake8')
0 files changed, 0 insertions, 0 deletions