1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00

Try to fix pip/venv issue

This commit is contained in:
Salamandar 2024-01-29 18:17:21 +01:00
parent 91de023e7b
commit d283ed4f6e
2 changed files with 19 additions and 4 deletions

View file

@ -58,4 +58,19 @@ ram.runtime = "50M"
main.url = "/" main.url = "/"
[resources.apt] [resources.apt]
packagess = "git, build-essential, libxslt-dev, python3-dev, python3-venv, python3-cffi, python3-babel,zlib1g-dev, libffi-dev, libssl-dev, python3-lxml, uwsgi, uwsgi-plugin-python3, shellcheck" packages = [
"git",
"build-essential",
"libxslt-dev",
"python3-dev",
"python3-venv",
"python3-pip",
"python3-cffi",
"python3-babel,zlib1g-dev",
"libffi-dev",
"libssl-dev",
"python3-lxml",
"uwsgi",
"uwsgi-plugin-python3",
"shellcheck",
]

View file

@ -37,9 +37,9 @@ ynh_add_nginx_config "path_no_root"
ynh_script_progression --message="Installing Searx..." --weight=2 ynh_script_progression --message="Installing Searx..." --weight=2
pushd $install_dir pushd $install_dir
python3 -m venv venv python3 -m venv --upgrade "$install_dir/venv"
venv/bin/pip3 install -U pip setuptools wheel pyyaml --no-cache-dir ynh_exec_as "$app" venv/bin/pip3 install -U pip setuptools wheel pyyaml --no-cache-dir
venv/bin/pip3 install --requirement $install_dir/requirements-ynh.txt --no-cache-dir ynh_exec_as "$app" venv/bin/pip3 install --requirement $install_dir/requirements-ynh.txt --no-cache-dir
popd popd
#================================================= #=================================================