-
-
Notifications
You must be signed in to change notification settings - Fork 178
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
Allow micromamba
provisioning in Linux too
#2097
Conversation
{%- if conda_install_tool == "micromamba" %} | ||
micromamba create --root-prefix /opt/conda --prefix /opt/mamba \ | ||
--yes --quiet --override-channels --channel conda-forge --strict-channel-priority \ | ||
pip {{ conda_install_tool_deps }} {{ conda_build_tool_deps }} {{ " ".join(remote_ci_setup) }} | ||
{%- endif %} |
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.
Why can't we just install into /opt/conda
?
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.
micromamba doesn't allow --prefix
and --root-prefix
to be the same, so this is the quickest way to reuse the /opt/conda
cache. We also avoid history
related problems.
If you want to reuse /opt/conda
, we could:
- Move
/opt/conda/pkgs
to the chosen mamba root prefix (e.g.~/.conda
) - Clear
/opt/conda/conda-meta/history
micromamba install ...
into/opt/conda
Do you prefer that?
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.
Wait maybe we don't need (1). Let me check something.
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.
What's the issue with using something like
CONDA_PKGS_DIRS=/opt/conda micromamba install conda-forge-ci-setup --prefix /opt/conda --root-prefix /opt/mamba
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.
Yep, yep, that's what I tested in conda-forge/dav1d-feedstock#21. Let me clean up and push.
Ok, the cache can be reused with the current method:
Note how the Cache and Extract actions are not as many as the link_precs. That means some of them are found in the cache already. That said, I noticed that the |
mv /opt/conda/conda-meta/history /opt/conda/conda-meta/history.$(date +%Y-%m-%d-%H-%M-%S) | ||
echo > /opt/conda/conda-meta/history |
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.
Why is this needed?
Checklist
news
entrypython conda_smithy/schema.py
)micromamba
to/opt/conda/condabin
docker-images#288