Skip to content

Conversation

@Flamefire
Copy link
Contributor

Introduce make_extension_module_extra which gets called during module
file 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 so make_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 regular pip 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

@Flamefire Flamefire force-pushed the module_text_from_extensions branch 2 times, most recently from 1759ad1 to 8a0b143 Compare September 23, 2024 11:40
@Flamefire Flamefire force-pushed the module_text_from_extensions branch 2 times, most recently from 138757f to 224f494 Compare September 23, 2024 14:44
@boegel boegel added this to the release after 4.9.4 milestone Sep 25, 2024
@boegel boegel modified the milestones: release after 4.9.4, release after 5.0.0 Mar 17, 2025
@boegel
Copy link
Member

boegel commented Apr 23, 2025

@Flamefire Can you look into resolving the merge conflict?

@Flamefire Flamefire force-pushed the module_text_from_extensions branch from 56dea43 to 10764d7 Compare April 23, 2025 07:19
@Flamefire
Copy link
Contributor Author

Did a full rebase to make the commits easier to read in EB 5.x

@Flamefire
Copy link
Contributor Author

Rebased

The different options for the module footers did not have consistent
newline handling:
- modtclfooter & modluafooter did append a line break
- modules_footer (cmdline) did not

Make sure all end with a new line such that they work in combination
especially with the EasyBuild version comment moved to the bottom
Introduce `make_extension_module_extra` which gets called during module
file creation for every extension similar to `make_module_extra`.
This ensures it will also be called for parallel extension or --module-only builds.

Fixes easybuilders#4647
This is always equal to `self.exts` as skipping is done on
`self.ext_instances`.
@Flamefire Flamefire force-pushed the module_text_from_extensions branch from aebde1e to 9773dd3 Compare October 7, 2025 14:09
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.

Incomplete module for extensions

2 participants