mirror of https://github.com/searxng/searxng.git
[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>
This commit is contained in:
parent
34badee467
commit
c69fc20be2
12
manage
12
manage
|
@ -355,12 +355,14 @@ pyenv.install() {
|
||||||
if pyenv.install.OK > /dev/null; then
|
if pyenv.install.OK > /dev/null; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
pyenv
|
||||||
|
pyenv.OK || die 42 "error while build pyenv (${PY_ENV_BIN})"
|
||||||
|
|
||||||
( set -e
|
( set -e
|
||||||
pyenv
|
build_msg PYENV "[install] pip install -e 'searx${PY_SETUP_EXTRAS}'"
|
||||||
build_msg PYENV "[install] pip install -e 'searx${PY_SETUP_EXTRAS}'"
|
"${PY_ENV_BIN}/python" -m pip install -e ".${PY_SETUP_EXTRAS}"
|
||||||
"${PY_ENV_BIN}/python" -m pip install -e ".${PY_SETUP_EXTRAS}"
|
buildenv
|
||||||
buildenv
|
) || die 42 "error while pip install (${PY_ENV_BIN})"
|
||||||
) || die 42 "error while build & install pyenv (${PY_ENV_BIN})"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pyenv.uninstall() {
|
pyenv.uninstall() {
|
||||||
|
|
Loading…
Reference in New Issue