-
Notifications
You must be signed in to change notification settings - Fork 118
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
+github.com/mamba-org/mamba #388
Conversation
not working yet
If this is a python-venv, you might want to use python-venv.sh; see https://github.com/teaxyz/pantry.extra/blob/main/projects/youtube-dl.org/package.yml. In any case, it looks like we'll need |
@jhheider mamba's core idea is to be 100% self-contained distribution for python/julia/R/etc package management Having external dependencies goes against how it is structured. So I'll do more experiments on how to build it properly. p.s. I also updated the PR description to make the purpose of this PR clearer |
Current status: builds and works locally # add mamba and it's bin folder to shell
❯ ~/proj/pkgdev/pantry.extra/tea.out/github.com/mamba-org/mamba/v22.11.1.4/bin/mamba init zsh
modified /home/david/.zshrc
==> For changes to take effect, close and re-open your current shell. <==
Added mamba to /home/david/.zshrc
❯ mamba --version
mamba 1.1.0
conda 22.11.1
❯ echo $CONDA_PREFIX
/home/david/proj/pkgdev/pantry.extra/tea.out/github.com/mamba-org/mamba/v22.11.1.4
❯ which python
/home/david/proj/pkgdev/pantry.extra/tea.out/github.com/mamba-org/mamba/v22.11.1.4/bin/python |
This is awesome! Thank you. Use our |
Current status:
@mxcl FYI |
UPD: this whole comment is no longer relevant, see #388 (comment) @mxcl This PR is ready for review. There is one thing that bothers me though: After installing mamba, the user is expected to run First, remember that So for this to work, it is very important that the version of However this breaks tea tests. So we did Currently I fix it by modifying PATH (see below), and after that everything just works without a hitch. But this bothers me, and should be somehow fixed in the future - I will experiment more after this PR is merged (I want to see how tea behaves when I'm installing mamba via running the magic) ❯ export PATH="$HOME/proj/pkgdev/pantry.extra/tea.out/github.com/mamba-org/mamba/v22.11/bin/python:$PATH"
❯ mamba init zsh
|
Second thing that bothers me is that the code downloads installation So another thing to ideally fix in the future |
Upd: The correct way to init mamba for daily usage is the following: tea +github.com/mamba-org/mamba sh # activate a tea venv with mamba & conda-packaged-python
tea $ mamba init "$(basename "${SHELL}")" # updates your .zshrc or .bashrc to make mamba & conda usable Also added this to source code as a comment |
Does that produce a different outcome from just running |
@jhheider Yeah, this actually seems to work. I simplified the comment sections in the code. p.s. the behavior below is exactly what I would want as a data scientist. Especially if I was less experienced with paths et cetera, I would want things to "just work"
|
If I understand tea cli correctly so was, this whole installation page with it's various instructions can be replaced by a tea one-liner:
|
Awesome :) The dream is coming true. |
|
||
fix-shebangs.ts {{prefix}}/bin/* | ||
|
||
#FIXME: add caveats |
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.
yeah it's on my “TODO” to figure out how we can communicate this sort of thing.
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.
Fabulous contribution.
Revert until non-relocatable packages are fixed This reverts commit caf9386.
nice |
Intro
mamba is a FAST package manager for data science
While mainly aimed at python, it supports most scientific computing languages: julia, R, python, etc
It is now the default tool for most data scientists to manage their environments.
Mamba has now de-facto replaced conda, because:
Motivation
As a Data Scientist I often have to take my code written locally with mamba as the pkg manager, and run it in CI/prod.
Getting the dependencies and docker images correct is a pain, especially since most mamba users are data scientists, not developers.
No dependencies
mamba's core idea is to be 100% self-contained distribution for python/julia/R/etc package management
So having external dependencies goes against how it is structured, we need to build it using only the
.sh
distribution files from mamba-forgeBy packaging mamba with
tea
, I am hoping to simplify my workflows, and maybe even get wider adoption oftea
within the Data Science communityp.s.
resolves #6