summaryrefslogtreecommitdiff
path: root/manage
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-04-18 17:22:51 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-04-23 11:26:22 +0200
commitc69fc20be242891cc524e4178b6c1a5acb70f54e (patch)
treeeb80b6110180ec50f6f0477bd496a86f73ca41f5 /manage
parent34badee46765f3a0aebd1add81ab301d10ee5571 (diff)
downloadsearxng-c69fc20be242891cc524e4178b6c1a5acb70f54e.tar.gz
searxng-c69fc20be242891cc524e4178b6c1a5acb70f54e.zip
[fix] ./manage pyenv.install - die when pyenv build fails
ERROR: When pyenv build fails, the pyenv command runs into a recursion [1]: .... BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV ERROR: Cannot install idna==3.1 and requests[socks]==2.25.1 because these package versions have conflicting dependencies. BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV BUILDENV The conflict is caused by: [1] https://github.com/return42/searx-next/pull/4#issuecomment-821999497 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'manage')
-rwxr-xr-xmanage12
1 files changed, 7 insertions, 5 deletions
diff --git a/manage b/manage
index 48f9e8726..e55517788 100755
--- a/manage
+++ b/manage
@@ -355,12 +355,14 @@ pyenv.install() {
if pyenv.install.OK > /dev/null; then
return 0
fi
+ pyenv
+ pyenv.OK || die 42 "error while build pyenv (${PY_ENV_BIN})"
+
( set -e
- pyenv
- build_msg PYENV "[install] pip install -e 'searx${PY_SETUP_EXTRAS}'"
- "${PY_ENV_BIN}/python" -m pip install -e ".${PY_SETUP_EXTRAS}"
- buildenv
- ) || die 42 "error while build & install pyenv (${PY_ENV_BIN})"
+ build_msg PYENV "[install] pip install -e 'searx${PY_SETUP_EXTRAS}'"
+ "${PY_ENV_BIN}/python" -m pip install -e ".${PY_SETUP_EXTRAS}"
+ buildenv
+ ) || die 42 "error while pip install (${PY_ENV_BIN})"
}
pyenv.uninstall() {