From c5e1a5ca5e50bf6b9dcfa2b922bc0a88841c6c25 Mon Sep 17 00:00:00 2001 From: Harshula Jayasuriya Date: Sun, 7 Jul 2024 22:22:16 +1000 Subject: [PATCH] access-om2: pass type to depends_on() (#127) * Passing type="run" to help with module autoloading as per: https://spack.readthedocs.io/en/v0.22.0/module_file_support.html#autoloading-and-hiding-dependencies --- packages/access-om2/package.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/packages/access-om2/package.py b/packages/access-om2/package.py index 929f05f..1df9465 100644 --- a/packages/access-om2/package.py +++ b/packages/access-om2/package.py @@ -20,11 +20,19 @@ class AccessOm2(BundlePackage): variant("deterministic", default=False, description="Deterministic build.") - depends_on("libaccessom2+deterministic", when="+deterministic") - depends_on("libaccessom2~deterministic", when="~deterministic") - depends_on("cice5+deterministic", when="+deterministic") - depends_on("cice5~deterministic", when="~deterministic") - depends_on("mom5+deterministic", when="+deterministic") - depends_on("mom5~deterministic", when="~deterministic") + depends_on("libaccessom2+deterministic", when="+deterministic", type="run") + depends_on("libaccessom2~deterministic", when="~deterministic", type="run") + depends_on("cice5+deterministic", when="+deterministic", type="run") + depends_on("cice5~deterministic", when="~deterministic", type="run") + depends_on( + "mom5+deterministic type=ACCESS-OM-BGC", + when="+deterministic", + type="run" + ) + depends_on( + "mom5~deterministic type=ACCESS-OM-BGC", + when="~deterministic", + type="run" + ) # There is no need for install() since there is no code.