Do not hardcode python3.11 in temporary fix

This commit is contained in:
Ayaz Salikhov
2023-12-08 12:37:12 +04:00
parent 027d3a1026
commit 42ff5aa638

View File

@@ -120,7 +120,7 @@ RUN set -x && \
# Temporary fix till mamba 1.5.5 is released
# Download mamba.py after merged fix for `mamba clean`: https://github.com/mamba-org/mamba/pull/3040
wget --progress=dot:giga https://raw.githubusercontent.com/mamba-org/mamba/cf9c063479c7bd32f1e6e8adfd04a1e15ba12981/mamba/mamba/mamba.py \
-O /opt/conda/lib/python3.11/site-packages/mamba/mamba.py && \
-O "/opt/conda/lib/python${PYTHON_VERSION}/site-packages/mamba/mamba.py" && \
# Pin major.minor version of python
mamba list python | grep '^python ' | tr -s ' ' | cut -d ' ' -f 1,2 >> "${CONDA_DIR}/conda-meta/pinned" && \
mamba clean --all -f -y && \