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

Change venv location

This commit is contained in:
mh4ckt3mh4ckt1c4s 2022-11-24 21:21:51 +01:00
parent 3312cb48bb
commit d71d6e5824
2 changed files with 3 additions and 3 deletions

View file

@ -26,7 +26,7 @@ route-run = fixpathinfo:
module = __APP__.webapp
# Virtualenv and python path
virtualenv = __FINALPATH__
virtualenv = __FINALPATH__/venv/
pythonpath = __FINALPATH__
chdir = __FINALPATH__/searx/

View file

@ -136,8 +136,8 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Installing SearXNG..." --weight=2
python3 -m venv --system-site-packages "$final_path"
set +u; source $final_path/bin/activate; set -u
python3 -m venv --system-site-packages "$final_path/venv"
set +u; source $final_path/venv/bin/activate; set -u
pip3 install -U pip setuptools wheel pyyaml --no-cache-dir
pip3 install -e "$final_path"