Skip to content

Commit a4ef9b1

Browse files
committed
remove conda history file
seems to result in unintended pinning of packages installed when setting up base env
1 parent aee37be commit a4ef9b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

repo2docker/buildpacks/conda/install-miniconda.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ if [[ -f /tmp/kernel-environment.yml ]]; then
5757

5858
conda env create -n kernel -f /tmp/kernel-environment.yml
5959
${CONDA_DIR}/envs/kernel/bin/ipython kernel install --prefix "${CONDA_DIR}"
60+
rm -f ${CONDA_DIR}/envs/kernel/conda-meta/history
6061
fi
61-
62+
# remove conda history file,
63+
# which seems to result in some effective pinning of packages in the initial env,
64+
# which we don't intend
65+
rm -f ${CONDA_DIR}/conda-meta/history
6266
# Clean things out!
6367
conda clean -tipsy
6468

0 commit comments

Comments
 (0)