From 0a3b72d8906f2f3b50ae415d2c129dea23fb2cf9 Mon Sep 17 00:00:00 2001 From: Anton Petrov Date: Thu, 23 Sep 2021 12:00:09 +0300 Subject: [PATCH 1/2] 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() { From 47d3dee0bbba7423a987f860c2af908b98c03699 Mon Sep 17 00:00:00 2001 From: Anton Petrov Date: Thu, 23 Sep 2021 12:26:46 +0300 Subject: [PATCH 2/2] Fix --- plugins/python-build/bin/python-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build index 1672e81c..ea976328 100755 --- a/plugins/python-build/bin/python-build +++ b/plugins/python-build/bin/python-build @@ -1044,7 +1044,7 @@ build_package_miniconda() { build_package_anaconda "$@" # 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) + "${PREFIX_PATH}/bin/conda" install --yes "pip" "conda=$(${PREFIX_PATH}/bin/conda --version | cut -d ' ' -f 2)" } build_package_copy() {