From 0a3b72d8906f2f3b50ae415d2c129dea23fb2cf9 Mon Sep 17 00:00:00 2001 From: Anton Petrov Date: Thu, 23 Sep 2021 12:00:09 +0300 Subject: [PATCH] Don't update conda when installing pip --- plugins/python-build/bin/python-build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index a18680a4..1672e81c 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1042,7 +1042,9 @@ build_package_anaconda() { build_package_miniconda() { build_package_anaconda "$@" - "${PREFIX_PATH}/bin/conda" install --yes "pip" + # Workaround to not upgrade conda when installing pip + # see https://github.com/pyenv/pyenv/issues/2070 + "${PREFIX_PATH}/bin/conda" install --yes "pip" "conda=$(${PREFIX_PATH}/bin/conda --version | cut -d ' ' -f 2) } build_package_copy() {