on master help sign in
[fix] installation instructions: pip install -e searx (setup.py)
f576cadMarkus Heiser
docs/build-templates/searx.rst+8−1
@@ -112,8 +112,15 @@ ${fedora_build}
112 $SEARX_PYENV/bin/python
112 $SEARX_PYENV/bin/python
113 Python 3.8.1
113 Python 3.8.1
114
114
115+ # update pip's boilerplate ..
116+ pip install -U pip
117+ pip install -U setuptools
118+ pip install -U wheel
119+
120+ # jump to searx's working tree and install searx into virtualenv
115 (${SERVICE_USER})$ cd "$SEARX_SRC"
121 (${SERVICE_USER})$ cd "$SEARX_SRC"
116− (${SERVICE_USER})$ ./manage.sh update_packages
122+ (${SERVICE_USER})$ pip install -e .
123+
117
124
118.. END manage.sh update_packages
125.. END manage.sh update_packages
119
126
utils/searx.sh+10−3
@@ -309,7 +309,10 @@ update_searx() {
309cd ${SEARX_SRC}
309cd ${SEARX_SRC}
310git checkout -B "$GIT_BRANCH"
310git checkout -B "$GIT_BRANCH"
311git pull
311git pull
312−${SEARX_SRC}/manage.sh update_packages
312+pip install -U pip
313+pip install -U setuptools
314+pip install -U wheel
315+pip install -U -e .
313EOF
316EOF
314 install_settings
317 install_settings
315 uWSGI_restart "$SEARX_UWSGI_APP"
318 uWSGI_restart "$SEARX_UWSGI_APP"
@@ -468,8 +471,12 @@ EOF
468 wait_key
471 wait_key
469 info_msg "install needed python packages"
472 info_msg "install needed python packages"
470 tee_stderr 0.1 <<EOF | sudo -H -u "${SERVICE_USER}" -i 2>&1 | prefix_stdout "$_service_prefix"
473 tee_stderr 0.1 <<EOF | sudo -H -u "${SERVICE_USER}" -i 2>&1 | prefix_stdout "$_service_prefix"
471−pip install wheel
474+pip install -U pip
475+pip install -U setuptools
476+pip install -U wheel
477+pip install -U -e .
472−${SEARX_SRC}/manage.sh update_packages
478+cd ${SEARX_SRC}
479+pip install -e .
473EOF
480EOF
474}
481}
475
482