Skip to content

New variable 'moddependpaths' to resolve dependencies at load time.#3324

Merged
ocaisa merged 5 commits intoeasybuilders:developfrom
kelseymh:3323_dependency_search_in_EC
May 6, 2020
Merged

New variable 'moddependpaths' to resolve dependencies at load time.#3324
ocaisa merged 5 commits intoeasybuilders:developfrom
kelseymh:3323_dependency_search_in_EC

Conversation

@kelseymh
Copy link
Copy Markdown
Contributor

@kelseymh kelseymh commented May 5, 2020

Following #3323 , a new EasyConfig parameter is introduced in the DEPENDENCIES section to allow EasyConfig writers to specify an additional path to find dependency modules within the EasyConfig. The moddependpaths path (or paths, it may be either a string or a list/tuple) is prepended(*) to MODULEPATH before load actions in the generated Lmod file.

A new function in easyblock.py, make_module_deppaths() is introduced to support this, and a unit test for it is provided.

(*) module_generator.use() is invoked, rather than explicitly specifying MODULEPATH.

Comment thread easybuild/framework/easyblock.py Outdated
Comment thread easybuild/framework/easyconfig/default.py Outdated
@easybuilders easybuilders deleted a comment from boegelbot May 6, 2020
@ocaisa
Copy link
Copy Markdown
Member

ocaisa commented May 6, 2020

Going in, thanks @kelseymh !

@ocaisa ocaisa merged commit 70b86fa into easybuilders:develop May 6, 2020
@kelseymh kelseymh deleted the 3323_dependency_search_in_EC branch May 7, 2020 04:10
@boegel boegel added this to the next release (4.2.1?) milestone May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants