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

Update for mamba 2.0.0rc6 #1366

Closed
wants to merge 30 commits into from
Closed
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b6936ab
Update for mamba 2.0.0rc2
jjerphan Aug 21, 2024
39d0dd5
Use conda 24.7.0
jjerphan Aug 21, 2024
d404831
Use custom build of conda-libmamba-solver
jjerphan Aug 21, 2024
6ce813d
Update version numbers in tests
jjerphan Aug 21, 2024
0567403
Add explicit specification for conda-libmamba-solver
jjerphan Aug 21, 2024
e4b24a4
Initialize current shell
jjerphan Aug 21, 2024
d19609b
fixup! Initialize current shell
jjerphan Aug 21, 2024
a947a08
Adapt match specifications
jjerphan Aug 21, 2024
b57bf60
Merge branch 'main' into update-mamba-2.0.0rc2
jjerphan Aug 21, 2024
6ade75f
Use `--root-prefix` flag instead of `--prefix` flag
jjerphan Aug 22, 2024
be0ed41
fixup! Use `--root-prefix` flag instead of `--prefix` flag
jjerphan Aug 22, 2024
c19c508
Remove duplicated call to `micromamba shell hook`
jjerphan Aug 22, 2024
efe36d7
Explicitly specify the channel of the custom build of conda-libmamba-…
jjerphan Aug 22, 2024
0a14433
Use `micromamba activate` instead of `mamba activate`
jjerphan Aug 22, 2024
d520a64
Show stdout
jjerphan Aug 22, 2024
47a1561
Fix version number in `tests/conda/py35-binder-dir/verify`
jjerphan Aug 22, 2024
ff16804
Use micromamba instead of mamba everywhere
jjerphan Aug 23, 2024
19330b3
Update for rc3
jjerphan Aug 26, 2024
4a02cc3
Reuse `mamba` in the activation script
jjerphan Aug 26, 2024
14addc5
Revert to use MAMBA_EXE
jjerphan Aug 27, 2024
3d7a7cc
Use 2.0.0rc4
jjerphan Aug 29, 2024
0a6406c
Do not forward stdout
jjerphan Aug 29, 2024
1ebc84e
Log source of profile
jjerphan Aug 30, 2024
ea83903
Log information of the current environment in py36-postBuild/postBuild
jjerphan Aug 30, 2024
86ff1fa
Show all env variables
jjerphan Aug 30, 2024
5ce4467
Debug activate-conda.sh
jjerphan Aug 30, 2024
4a5bd41
Use 2.0.0rc5
jjerphan Sep 13, 2024
444bd2f
Merge branch 'main' into update-mamba-2.0.0rc2
jjerphan Sep 13, 2024
a41a00a
Empty commit to retrigger CI
jjerphan Sep 13, 2024
b6a0b84
Use 2.0.0rc6
jjerphan Sep 20, 2024
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
2 changes: 1 addition & 1 deletion repo2docker/buildpacks/conda/activate-conda.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# enable conda and activate the notebook environment
jjerphan marked this conversation as resolved.
Show resolved Hide resolved
eval $(micromamba shell hook -s posix -p ${CONDA_DIR})
eval $(micromamba shell hook -s posix -r ${CONDA_DIR})
for name in conda mamba; do
SylvainCorlay marked this conversation as resolved.
Show resolved Hide resolved
CONDA_PROFILE="${CONDA_DIR}/etc/profile.d/${name}.sh"
test -f $CONDA_PROFILE && . $CONDA_PROFILE
Expand Down
17 changes: 13 additions & 4 deletions repo2docker/buildpacks/conda/install-base-env.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ set -ex

cd $(dirname $0)

export MAMBA_VERSION=1.5.8
export CONDA_VERSION=24.5.0
export MAMBA_VERSION="2.0.0rc2"
jjerphan marked this conversation as resolved.
Show resolved Hide resolved
export CONDA_VERSION=24.7.0

URL="https://anaconda.org/conda-forge/micromamba/${MAMBA_VERSION}/download/${CONDA_PLATFORM}/micromamba-${MAMBA_VERSION}-0.tar.bz2"

Expand All @@ -21,7 +21,9 @@ time wget -qO- ${URL} | tar -xvj bin/micromamba
mv bin/micromamba "$MICROMAMBA_EXE"
chmod 0755 "$MICROMAMBA_EXE"

eval "$(${MICROMAMBA_EXE} shell hook -p ${CONDA_DIR} -s posix)"
eval "$(${MICROMAMBA_EXE} shell hook --root-prefix ${CONDA_DIR} -s posix)"

eval "$(micromamba shell hook --shell bash)"
jjerphan marked this conversation as resolved.
Show resolved Hide resolved

micromamba activate

Expand All @@ -36,7 +38,14 @@ update_dependencies: false
# channel_priority: flexible
EOT

micromamba install conda=${CONDA_VERSION} mamba=${MAMBA_VERSION} -y
# TODO: remove channels and conda-libmamba-solver once 2.0.0 is used.
micromamba install \
-c conda-canary/label/conda-libmamba-solver-pr-457 \
-c conda-forge/label/mamba_dev \
-c conda-forge \
"conda-libmamba-solver>=${CONDA_VERSION}" \
jjerphan marked this conversation as resolved.
Show resolved Hide resolved
"conda>=${CONDA_VERSION}" \
mamba=${MAMBA_VERSION} -y

echo "installing notebook env:"
cat "${NB_ENVIRONMENT_FILE}"
Expand Down
6 changes: 3 additions & 3 deletions tests/conda/py35-binder-dir/verify
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ v = out.split()[1]
assert v[:3] == "3.5", out

out = sh(["micromamba", "--version"])
assert out == "1.5.8", out
assert out == "2.0.0", out

out = sh(["mamba", "--version"])
assert (
out
== """mamba 1.5.8
conda 24.5.0"""
== """mamba 2.0.0
conda 24.7.0"""
), out

sh([kernel_python, "-c", "import numpy"])
Loading