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 venv

This commit is contained in:
Salamandar 2024-01-29 18:26:23 +01:00
parent 38ccc82f8e
commit 421b5e3b26
2 changed files with 19 additions and 6 deletions

View file

@ -4,6 +4,19 @@
# COMMON VARIABLES
#=================================================
#=================================================
# PERSONAL HELPERS
#=================================================
_searx_venv_install() {
ynh_exec_as "$app" python3 -m venv --upgrade "$install_dir/venv"
venvpy="$install_dir/venv/bin/python3"
ynh_exec_as "$app" "$venvpy" -m pip install --upgrade --no-cache-dir pip
ynh_exec_as "$app" "$venvpy" -m pip install setuptools wheel pyyaml
}
#=================================================
# UWSGI HELPERS
#=================================================

View file

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