Skip to content

Add extension_name parameter - #5259

Open
Flamefire wants to merge 3 commits into
easybuilders:developfrom
Flamefire:extension-name
Open

Add extension_name parameter #5259
Flamefire wants to merge 3 commits into
easybuilders:developfrom
Flamefire:extension-name

Conversation

@Flamefire

@Flamefire Flamefire commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

When set for an extension it is used instead of its name in the extension list of the module.
When set for a (root) easyconfig it will add an extension entry for it.

This can then be used by easyblocks e.g. to check for Python package name in pip list.

I would also combine it with #5257 : When extension_name is set it is used as the default for load_name. I expect that this applies to many packages. E.g. PyTorch is listed and loaded as torch

I also found and fixed a bug/inconsistency: For string-extensions templates were only resolved in make_extension_list but not in collect_exts_file_info

As for templating: extension_name templates are resolved using the extension templates, i.e. %(name)s is that of the extension, not the parent EC. That is consistent with the other options.

Initial draft done by AI, manually verified and adjusted afterwards

When set for an extension it is used instead of its name in the
extension list of the module.
When set for a (root) easyconfig it will add an extension entry for it.
This currently only happens when the module is created, but not when the
actual extension is created.
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