Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Module name in shpc configuration #678

Open
Amjadhpc opened this issue Dec 25, 2024 · 1 comment
Open

Module name in shpc configuration #678

Amjadhpc opened this issue Dec 25, 2024 · 1 comment

Comments

@Amjadhpc
Copy link

Hello i am new to Singularity hpc and trying to build containers from local file registry singularity containers

My question is in naming of module file
For example if i have container of application velocyto with version 0.17.13 , the following module file is created
velocyto/0.17.13/module
velocyto/0.17.13/module.tcl

Is it possible in shpc config that the version number is the module file instead having module. or module.tcl file
velocyto/0.17.13
velocyto/0.17.13.tcl

The reason behind this question is currently we are making manual module files using this method where version number is module file and we want to automate the method with shpc . We can look doing some scripts to do this change , but were wondering if we can modify the shpc config to have it set by default.
I hope i have been able to articulate my question

@vsoch
Copy link
Member

vsoch commented Dec 26, 2024

@Amjadhpc that is a very reasonable feature request! Are you able to develop in Python or would you need help? You'd want to add a setting to settings.yaml that is something akin to version_naming and then a boolean that defaults to false (to preserve current behavior) and if true, you'd want to tweak the install path to instead of creating a directory with the version, to have it write a file with the module extension to that path instead. Let me know if you would like to give that a try and open a PR. Happy Holidays!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants