necaris / conda.el

Emacs helper library (and minor mode) to work with conda environments
MIT License
153 stars 51 forks source link

Support for mamba #105

Closed Qwarctick closed 2 years ago

Qwarctick commented 2 years ago

As mamba is now a recommended replacement for conda, it could be nice to support it

source: https://mamba.readthedocs.io/en/latest/user_guide/mamba.html

Qwarctick commented 2 years ago

I tested for mamba and it works. In fact mamba is just like conda, so I just edit as the following:

(use-package conda
  :custom
  (conda-anaconda-home "~/mambaforge")
  (conda-env-home-directory "~/mambaforge"))

I tested with micromamba and it does not work at the same way. There is no conda-meta does not exist, ... So if you want to work with conda.el, use conda or mamba but not micromamba

necaris commented 2 years ago

Could you please open a PR adding the default directories to the search path?

— Rami Chowdhury “A mind all logic is like a knife all blade - it makes the hand bleed that uses it.” - Rabindranath Tagore

On May 19, 2022, at 09:01, Philippe @.***> wrote:

 Closed #105.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

Qwarctick commented 2 years ago

I can but actually there is only ~/anaconda3 as candidate for conda-env-home. Should I add the ~/mamba and maybe ~/miniconda as candidates and iterate through them to search the conda path ?

necaris commented 2 years ago

Philippe @.***> writes:

I can but actually there is only ~/anaconda3 as candidate for conda-env-home. Should I add the ~/mamba and maybe ~/miniconda as candidates and iterate through them to search the conda path ?

That would be a great improvement, please do!

-- Rami Chowdhury A mind all logic is like a knife all blade - it makes the hand bleed that uses it. -- Rabindranath Tagore

Qwarctick commented 2 years ago

Ok no problem ! I will work on it after my vacation :)

Qwarctick commented 2 years ago

Merged with https://github.com/necaris/conda.el/pull/106 Can close this issue