umf only avaiable with 2025 (#48027)

This commit is contained in:
Robert Cohn 2024-12-11 10:33:56 -05:00 committed by GitHub
parent e9d2732e00
commit f760e16688
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -398,7 +398,7 @@ def setup_run_environment(self, env):
super().setup_run_environment(env)
# umf is packaged with compiler and not available as a standalone
if "~envmods" not in self.spec:
if "~envmods" not in self.spec and self.spec.satisfies("@2025:"):
env.extend(
EnvironmentModifications.from_sourcing_file(
self.prefix.umf.latest.env.join("vars.sh"), *self.env_script_args