easybuild-easyblocks icon indicating copy to clipboard operation
easybuild-easyblocks copied to clipboard

Allow for Perl modules being part of other, already installed Perl modules

Open Flamefire opened this issue 4 years ago • 4 comments

(created using eb --new-pr)

Flamefire avatar Apr 13 '21 09:04 Flamefire

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?

Flamefire avatar Apr 17 '21 10:04 Flamefire

included_modules sounds like a good first approach.

akesandgren avatar May 24 '21 11:05 akesandgren

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

Flamefire avatar May 25 '21 15:05 Flamefire

Updated https://github.com/easybuilders/easybuild-framework/pull/3697 Anything else new here?

Flamefire avatar Jul 26 '22 08:07 Flamefire