From c4923fe3b3ee28ac47311411a631b228aaefef38 Mon Sep 17 00:00:00 2001 From: Xavier Delaruelle Date: Fri, 24 Mar 2023 20:38:24 +0100 Subject: modules: add support for append_flags/remove_flags (#36402) Adapt tcl and lmod modulefile templates to generate append-path or remove-path commands in modulefile when respectively append_flags or remove_flags commands are defined in package for run environment. Fixes #10299. --- var/spack/repos/builtin.mock/packages/module-path-separator/package.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin.mock/packages/module-path-separator/package.py b/var/spack/repos/builtin.mock/packages/module-path-separator/package.py index ffd3c48beb..65d6e7aded 100644 --- a/var/spack/repos/builtin.mock/packages/module-path-separator/package.py +++ b/var/spack/repos/builtin.mock/packages/module-path-separator/package.py @@ -20,3 +20,6 @@ class ModulePathSeparator(Package): env.append_path("SEMICOLON", "bar", separator=";") env.prepend_path("SEMICOLON", "bar", separator=";") env.remove_path("SEMICOLON", "bar", separator=";") + + env.append_flags("SPACE", "qux") + env.remove_flags("SPACE", "qux") -- cgit v1.2.3-70-g09d2