diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2024-10-23 07:33:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-23 07:33:09 +0200 |
commit | ed15b73c3bb6b733858e8891a74c1e9afe0b3c8b (patch) | |
tree | 42546d7789af98d17aeccde4350d288b3d942cb2 | |
parent | 1f6da280b77570410d832ea42e481764bcfd793f (diff) | |
download | spack-ed15b73c3bb6b733858e8891a74c1e9afe0b3c8b.tar.gz spack-ed15b73c3bb6b733858e8891a74c1e9afe0b3c8b.tar.bz2 spack-ed15b73c3bb6b733858e8891a74c1e9afe0b3c8b.tar.xz spack-ed15b73c3bb6b733858e8891a74c1e9afe0b3c8b.zip |
Remove spurious warning, introduced in #46992 (#47152)
fixes #47135
Signed-off-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
-rw-r--r-- | lib/spack/spack/build_environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/build_environment.py b/lib/spack/spack/build_environment.py index ad62685024..e620357022 100644 --- a/lib/spack/spack/build_environment.py +++ b/lib/spack/spack/build_environment.py @@ -1061,8 +1061,8 @@ class SetupContext: pkg.setup_dependent_package(dependent_module, spec) dependent_module.propagate_changes_to_mro() - pkg = self.specs[0].package if self.context == Context.BUILD: + pkg = self.specs[0].package module = ModuleChangePropagator(pkg) # std_cmake_args is not sufficiently static to be defined # in set_package_py_globals and is deprecated so its handled |