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

fix(mamba) #414

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions projects/github.com/mamba-org/mamba/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ build:

fix-shebangs.ts {{prefix}}/bin/*

sh_tea_prefix='$(tea --prefix)'
sed -i.bak -e "s|$TEA_PREFIX/|$sh_tea_prefix/|g" {{prefix}}/bin/curl-config
#FIXME: once this pkg builds properly, add `rm mamba.sh` to reduce artifact size?

#FIXME: add caveats
# Please run the following to setup your shell:
# mamba init "$(basename "${SHELL}")" # updates your .zshrc or .bashrc to make mamba & conda usable
Expand All @@ -45,9 +49,24 @@ build:
- -u # update if already installed
- -p {{prefix}} # prefix - where to install

test: |
mamba --version
conda --version
test:
script: |
mamba --version # check that mamba is present
mamba init # init and source at test env
source .bashrc # ^

# check that we run mamba-provided python
which python | grep '{{prefix}}/bin/python'

# now install a small package and try running it
mamba install isodate --yes
python -c "import isodate"


# should return nothing
# test that relocatable paths from build env were all fixed
export out="$(grep -r '/opt/github.com/mamba-org/mamba' {{prefix}})"
test "$out" = ''

provides:
- condabin/conda
Expand Down