Ponysearch/utils
Markus Heiser 036933599b [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-23 11:14:29 +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 More branding 2021-04-22 21:10:22 +02: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-23 11:14:29 +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 [fix] utils/searx.sh - Double quote to prevent globbing 2021-04-23 11:14:29 +02:00