Skip to content

4 Conda Fixes to allow Conda.py to work with Micromamba#3082

Open
dirkpetersen wants to merge 3 commits intoeasybuilders:developfrom
dirkpetersen:condafix
Open

4 Conda Fixes to allow Conda.py to work with Micromamba#3082
dirkpetersen wants to merge 3 commits intoeasybuilders:developfrom
dirkpetersen:condafix

Conversation

@dirkpetersen
Copy link
Copy Markdown

These 4 changes will allow EB to use Micromamba as conda / mamba replacement which is much faster

  • Check for existence of micromamba first because mamba is sometimes used as alias for micromamba but typically not vice versa
  • remove the --force option from command line because Micromamba does not support it. I have requested that they implement it .
  • do not bootstrap config --add create_default_packages setuptools with Micromamba, there is no Python and it does not like setuptools
  • delete the empty installdir os.rmdir(self.installdir) as Micromamba likes to create that itself and complains if it is already there.

if conda_cmd == 'micromamba':
force = ''
try:
os.rmdir(self.installdir)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better use easybuild.tools.filetools.remove_dir, which already takes care of the try-except for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants