empty conda history instead of deleting it

conda uses the presence of this file as a magic indicator of conda envs
so make it empty, not gone
pull/576/head
Min RK 2019-02-08 12:07:31 +01:00
rodzic 33ae3b00ad
commit 6e91681def
1 zmienionych plików z 6 dodań i 4 usunięć

Wyświetl plik

@ -57,12 +57,14 @@ if [[ -f /tmp/kernel-environment.yml ]]; then
conda env create -n kernel -f /tmp/kernel-environment.yml
${CONDA_DIR}/envs/kernel/bin/ipython kernel install --prefix "${CONDA_DIR}"
rm -f ${CONDA_DIR}/envs/kernel/conda-meta/history
echo '' > ${CONDA_DIR}/envs/kernel/conda-meta/history
fi
# remove conda history file,
# empty conda history file,
# which seems to result in some effective pinning of packages in the initial env,
# which we don't intend
rm -f ${CONDA_DIR}/conda-meta/history
# which we don't intend.
# this file must not be *removed*, however
echo '' > ${CONDA_DIR}/envs/kernel/conda-meta/history
# Clean things out!
conda clean -tipsy