forked from readthedocs/readthedocs.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Patch pyenv-build to not upgrade conda
When installing miniconda3, `pyenv-build` calls: conda install --yes pip which automatically updates conda to its latest version and making us lossing our pinned version. This commit adds a patch to keep installing pip after conda install, but pinning conda to the current version to avoid upgrading it automatically. See pyenv/pyenv#2070
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
diff --git a/plugins/python-build/bin/python-build b/plugins/python-build/bin/python-build | ||
index a18680a4..ea976328 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() { |