easybuild-easyblocks
easybuild-easyblocks copied to clipboard
Allow for Perl modules being part of other, already installed Perl modules
(created using eb --new-pr)
How are those installed? from which sources?
I was following the design of the R ECs, so we have something like this already. But I see your point, it is just not easy to solve.
We would like a different approach that allows installing multiple Perl modules from a single source with the following syntax
This is more difficult than it looks. E.g. the --skip is supposed to "import" a module and not install it if that succeeds. The proposed solution needs to enhance also that to support multiple modulenames. This seems to require major changes to the framework. I like the approach though.
As an alternative: Can we add a new PerlModule EC param included_modules which are then only sanity checked for import without affecting anything else?
included_modules sounds like a good first approach.
Just evaluated that approach. It likely needs a change to the framework because we (probably) want to have those listed in the Module extension list, don't we?
Currently we have this code: exts_list = ','.join(['-'.join(ext[:2]) for ext in self.cfg.get_ref('exts_list')])
My idea would be to extract that into a function the Perl-EasyBlock can override. See https://github.com/easybuilders/easybuild-framework/pull/3697
Updated https://github.com/easybuilders/easybuild-framework/pull/3697 Anything else new here?