Skip to content

Commit d2f7ebd

Browse files
authored
Merge pull request #373 from minrk/rm-history
remove conda-meta/history
2 parents aee37be + bbedf94 commit d2f7ebd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-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

tests/external/reproductions.repos.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@
2424
url: https://github.com/binder-examples/requirements
2525
ref: test
2626
verify: python -c 'import matplotlib'
27+
# Test that custom channels and downgrades don't
28+
# get blocked by pinning
29+
- name: Xeus-Cling
30+
url: https://github.com/QuantStack/xeus-cling
31+
ref: 0.4.5
32+
verify: jupyter kernelspec list

0 commit comments

Comments
 (0)