allow extensions to add text to the module file #4652
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Introduce
make_extension_module_extra
which gets called during modulefile creation for every extension similar to
make_module_extra
.This ensures it will also be called for parallel extension or --module-only builds.
Fixes #4647
I'm open for a better name but
make_module_extra_extensions
already exists somake_module_extra_extension
might be confusing.Currently the (now deprecated) feature is only used by the numpy easyblock to add the numpy includes to
$CPATH
. So that easyblock needs to be updated. I'd argue that we shouldn't add the numpy includes as a regularpip install numpy
doesn't do that either. So if a user updates the numpy in a virtualenv using our current approach might end up using headers from one numpy and libs/python files from another.However I'm not sure if (and why) other software we have already relies on that. One which did will be fixed by easybuilders/easybuild-easyconfigs#21467