searx/utils
Markus Heiser ce9312ddee [enh] utils/lib.sh - commands pyenv, pyenv.drop pyenv.(un)install
Implement a boilerplate to manage performance optimized virtualenv builds.
Shell scripts can use (e.g.) 'pyenv.cmd' to execute command in the virtualenv
without having to worry about whether and how the environment is provided. ::

  pyenv.cmd which python
  ..../local/py3/bin/python

  pyenv.cmd which pip
  ..../local/py3/bin/pip

If pyenv.cmd released multiple times the installation will only rebuild if the
function 'pyenv.OK' fails.  Function 'pyenv.OK' make some test to validate that
the virtualenv exists and works as expected.  The check also fails if
requirements listed requirements-dev.txt and requirements.txt has been edited.
Among these tests 'pyenv.OK' calls 'pyenv.check' which implements a python
script that validate the python installation.  Here is an example how a
'pyenv.check' implementation could look like::

    pyenv.check() {
       cat  <<EOF
    import yaml
    print('import yaml --> OK')
    EOF
    }

Signed-off-by: Markus Heiser <markus@darmarit.de>
2021-04-11 18:26:27 +02:00
..
site-python docs: building (PDF) books / build user book 2020-03-21 18:45:38 +01:00
templates Use $host in nginx morty.conf template 2021-03-04 11:16:27 +01:00
brand.env [mod] move brand options from Makefile to settings.yml 2021-01-11 22:12:38 +01:00
build_env.py [fix] utils/build_env.py: make sure to always use searx/settings.yml 2021-01-11 22:59:35 +01:00
filtron.sh Utility scripts adapted to run on CentOS 7 (#2112) 2020-08-01 22:12:44 +02:00
lib.sh [enh] utils/lib.sh - commands pyenv, pyenv.drop pyenv.(un)install 2021-04-11 18:26:27 +02:00
lxc-searx.env [mod] LXC switch to Fedora 33 / Fedora 31 reached its EOL 2021-03-05 13:17:47 +01:00
lxc.sh [mod] LXC switch to Fedora 33 / Fedora 31 reached its EOL 2021-03-05 13:17:47 +01:00
makefile.include [mod] LXC_ENV_FOLDER moved from ./lxc to ./lxc-env 2020-12-26 11:43:18 +01:00
makefile.lxc [mod] LXC_ENV_FOLDER moved from ./lxc to ./lxc-env 2020-12-26 11:43:18 +01:00
makefile.python [fix] re-add 'pip-exe' target - partial revert 9b48ae47 2021-02-01 16:58:04 +01:00
makefile.sphinx [mod] CI: minor changes 2021-02-02 08:53:57 +01:00
morty.sh Utility scripts adapted to run on CentOS 7 (#2112) 2020-08-01 22:12:44 +02:00
searx.sh Allow overriding env vars SEARX_SETTINGS_PATH,UWSGI_SETTINGS_PATH 2021-04-08 12:56:15 +09:00