Merge pull request #2074 from anton-petrov/master

Don't update conda when installing pip
This commit is contained in:
Anton Petrov 2021-09-23 12:47:50 +03:00 committed by GitHub
commit 9ecfdd1073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {