Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for multiple modulenames in extensions #4716

Open
wants to merge 3 commits into
base: 5.0.x
Choose a base branch
from

Conversation

Flamefire
Copy link
Contributor

This changes the allowed types of the modulename extension option:

  • False to skip the sanity check and always install it when --skip is used
  • str: Value for %(ext_name)s in the exts_filter template
  • List of str: Multiple names to be used in the exts_filter template. All resulting commands must succeed.

This was previously suggested to allow Perl modules that are part of other Perl modules and hence don't need to be installed multiple times. See easybuilders/easybuild-easyconfigs#12575

It replaces resolve_exts_filter_template by
construct_exts_filter_cmds as the method now returns a, potentially empty, list which might cause errors if used without expecting a list.

The function is only used internally in framework and not by any easyblocks.

This changes the allowed types of the `modulename` extension option:
- `False` to skip the sanity check and always install it when `--skip` is used
- `str`: Value for `%(ext_name)s` in the `exts_filter` template
- List of `str`: Multiple names to be used in the `exts_filter` template.
  All resulting commands must succeed.

It replaces `resolve_exts_filter_template` by
`construct_exts_filter_cmds` as the method now returns a, potentially empty, list
which might cause errors if used without expecting a list.
There shouldn't be a command executed for that.
This might be useful for easyblocks to avoid duplicating the code for
determining the modulename from either the options or the name.
@Flamefire Flamefire force-pushed the multiple-modulenames branch from bd305b1 to 7dac45e Compare December 5, 2024 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant