Skip to content
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

Updating our installation instructions to use mamba #391

Closed
brian-rose opened this issue May 3, 2023 · 10 comments
Closed

Updating our installation instructions to use mamba #391

brian-rose opened this issue May 3, 2023 · 10 comments
Assignees
Labels
content Content related issue hackathon Issue highlighted for active hackathon session

Comments

@brian-rose
Copy link
Member

After a good community discussion on this discourse thread, I think we've settled on advising our users to adopt mamba in some form for their own environment management.

We need to decide on some details:

Some different views were expressed in the above discourse thread.

Whatever we decide, this chapter of Foundations needs updating:
https://foundations.projectpythia.org/foundations/conda.html

and probably several other bits of Contributor info like this one:
https://projectpythia.org/contributing.html#creating-a-python-environment-that-will-work-with-pythia
and this one:
https://foundations.projectpythia.org/appendix/how-to-contribute.html

It would be great to get this done prior to the summer hackathon. Let's discuss at the next EWG and make an action plan.

@brian-rose brian-rose added the content Content related issue label May 3, 2023
@dopplershift
Copy link
Contributor

I'm a fan of moving to mambaforge because not only does that get us mamba, but it pre-configures the conda-forge channel as well.

@brian-rose
Copy link
Member Author

I'm a fan of moving to mambaforge because not only does that get us mamba, but it pre-configures the conda-forge channel as well.

I support this. That's how I manage environments on my own machines, and it works beautifully.

We'll just need to make sure our tutorial explains clearly the relationship between mamba and conda, since there are vastly more examples of conda usage out in the wild.

e.g. in the metpy installation guide the instructions say to do

conda install -c conda-forge metpy

but the user can replace this with

mamba install metpy

@ktyle ktyle added high priority hackathon Issue highlighted for active hackathon session labels May 8, 2023
@ktyle ktyle self-assigned this May 8, 2023
@dopplershift
Copy link
Contributor

When we finally follow up on this, we need to adjust to (probably) use miniforge. This gives us the benefit of having the conda-forge channel pre-configured, but there's no need to go to mambaforge any more since Mamba is now shipping with both and mambaforge is being deprecated. See conda-forge/miniforge#488.

It should also be noted that the Mamba solver should be the default for Conda as well any day now so even switching instructions to use mamba may no longer be needed.

@erogluorhan erogluorhan moved this from Backlog to To-Do in Pythia Projects Board Nov 20, 2023
@ktyle
Copy link
Contributor

ktyle commented Dec 4, 2023

It looks like libmamba has finally become the default solver for conda-based installations, e.g. miniconda and miniforge. However, the most recent installer for miniforge still uses the classic solver ... one needs to run "conda update --all" after the initial installation for the solver to change. I can move forward with updating our installation instructions, but will need to revisit yet again once the Miniforge installers finally reflect this change in behavior.

@brian-rose
Copy link
Member Author

We discussed this at today's Community Meeting and the consensus seems to be that we should just wait it out, since it appears that miniforge will likely be updated in the not-too-distant future and this will effectively mean that our existing installation instructions will be correct again.

@ktyle
Copy link
Contributor

ktyle commented Dec 5, 2023

I think we'll need to do something regardless, as our instructions specify miniconda, but we should be using miniforge (the latter uses the conda-forge channel out-of-the-box).

@ktyle
Copy link
Contributor

ktyle commented Sep 3, 2024

@erogluorhan At August's iteration meeting, we considered closing this, but updating the instructions to use miniforge remains the best strategy. I'll really try to get this done by the October iteration.

@erogluorhan
Copy link
Member

Sounds good; thanks!

@ktyle
Copy link
Contributor

ktyle commented Sep 30, 2024

#491 is ready for review.

@dopplershift
Copy link
Contributor

Closed by #491.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Content related issue hackathon Issue highlighted for active hackathon session
Projects
Status: Done
Development

No branches or pull requests

4 participants