New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
enhance Conda
easyblock: add support for using custom conda
command (like mamba
), and clean up after installation
#2996
Conversation
@boegelbot please test @ jsc-zen2 EB_ARGS="TRUST4-1.0.5.1.eb" |
@ocaisa: Request for testing this PR well received on jsczen2l1.int.jsc-zen2.easybuild-test.cluster PR test command '
Test results coming soon (I hope)... - notification for comment with ID 1711708294 processed Message to humans: this is just bookkeeping information for me, |
@boegelbot please test @ jsc-zen2 EB_ARGS="TRUST4-1.0.5.1.eb" |
@SebastianAchilles: Request for testing this PR well received on jsczen2l1.int.jsc-zen2.easybuild-test.cluster PR test command '
Test results coming soon (I hope)... - notification for comment with ID 1711861108 processed Message to humans: this is just bookkeeping information for me, |
Test report by @boegelbot Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
@boegelbot please test @ generoso EB_ARGS="TRUST4-1.0.5.1.eb" |
Conda
easyblock: add support for using custom conda
command (like mamba
), and clean up after installation
@boegelbot please test @ jsc-zen2 EB_ARGS="TRUST4-1.0.5.1.eb" |
@ocaisa: Request for testing this PR well received on jsczen2l1.int.jsc-zen2.easybuild-test.cluster PR test command '
Test results coming soon (I hope)... - notification for comment with ID 1717641672 processed Message to humans: this is just bookkeeping information for me, |
Test report by @boegelbot Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
@boegelbot please test @ generoso EB_ARGS="TRUST4-1.0.5.1.eb" |
@ocaisa: Request for testing this PR well received on login1 PR test command '
Test results coming soon (I hope)... - notification for comment with ID 1717662302 processed Message to humans: this is just bookkeeping information for me, |
Test report by @boegelbot Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rsdmse I think I agree with @branfosj that rather than set conda_cmd
on the basis of a config variable we should check the environment. Search for get_software_root
in this repo to get some examples of usage. For example:
from easybuild.tools.modules import get_software_root
...
if get_software_root('mamba'):
conda_cmd = 'mamba'
elif get_software_root('conda'):
conda_cmd = 'conda'
else
raise EasyBuildError("Neither mamba nor conda available as a dependency!")
@ocaisa Thanks for the suggestion and code snippet. I've taken into account of the variants that I'm aware of: anaconda, miniconda, mamba, micromamba. If the number of variants keep expanding and go out of hand we may have to revert to allowing a user-defined command. |
@boegelbot please test @ generoso EB_ARGS="TRUST4-1.0.5.1.eb" |
@ocaisa: Request for testing this PR well received on login1 PR test command '
Test results coming soon (I hope)... - notification for comment with ID 1721565503 processed Message to humans: this is just bookkeeping information for me, |
Test report by @boegelbot Overview of tested easyconfigs (in order)
Build succeeded for 1 out of 1 (1 easyconfigs in total) |
Going in, thanks for the patience @rsdmse ! |
@ocaisa Thanks for all the suggestions! |
DEFAULT_CONDA_CMD = 'conda'
and allow for user-defined alternative (e.g.mamba
)conda clean -ya
after env installation to clean up cache files