In case anyone interested in seeing what that hook looks like, https://gist.github.com/ocaisa/3a72804123923fbd753c1cae12261d9c
It's still a proof-of-concept, and rough around the edges but works fine as of Lmod 8.7.14 Alan On Wed, 9 Nov 2022 at 17:27, Alan O'Cais <[email protected]> wrote: > Hi Frank, > > CategorizedHMNS is not widely used (as far as I know) so you there may be > some issues lurking there. Plain HMNS is much more widely used and I'd say > a better choice. Additionally there's a new feature in Lmod that just got > released that allows us to define *multiple *categories inside a module > file (EasyBuild currently only allows one "moduleclass"). I haven't added > support for it yet in EB but it's something I want to look at really soon. > > The plan would be that you use an EB hook to inject the categories that > you want for a piece of software (based off some mapping that you store). > This would add the categories to the module file and then you use Lmod to > search for software based on categories. You use `module cat` to see > available categories, `module cat <category name>` to show software in a > category and then `module spider <software name>` to see how to load > (versions of) that software (including any gateway modules). > > You can also use Lmod hooks with categories, for example I can imagine > wanting to hide modules of a certain category for users in certain groups. > Personally, I've implemented an Lmod hook that allows me to have > subcategories so I can implement a complete taxonomy. > > Hope that helps, > > Alan > > > On Wed, 9 Nov 2022 at 16:37, Heckes, Frank <[email protected]> wrote: > >> Hi all, >> >> The latest and also the previous tutorials recommends upon using HMNS: >> >> >> >> ‘. . . *We strongly recommend using an EasyBuild installation that >> was installed via "pip install" or "pip3 install" >> <https://easybuilders.github.io/easybuild-tutorial/2022-isc22/installation/#method-1-using-pip-recommended> >> in >> this part of the tutorial.** . . .’* >> >> (in >> https://easybuilders.github.io/easybuild-tutorial/2022-isc22/module_naming_schemes/ >> ) >> >> >> >> Does the recommendation also apply to ‘production’ environments or is >> this only a didactical safety set-up to avoid the clashes resulting from >> eventually existing installation with flat namespace or other modules? My >> question is, can I use the module installation procedure for >> CategorizedHMNS builds without running into problems, as long as I follow >> the donts described in the page above ? Many thanks in advance. >> >> Cheers, >> >> -Frank Heckes >> >

