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

Fix install and upgrade

This commit is contained in:
Josué Tille 2020-04-11 14:19:29 +02:00
parent a81ba55843
commit 28e855a2b8
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 9 additions and 3 deletions

View file

@ -100,7 +100,7 @@ ynh_script_progression --message="Installing Searx..."
python3 -m venv --system-site-packages "$final_path"
set +u; source $final_path/bin/activate; set -u
pip3 install -U pip setuptools
pip3 install -U setuptools
pip3 install --requirement $final_path/requirements-ynh.txt
#=================================================

View file

@ -124,10 +124,16 @@ ynh_system_user_create --username=$app
ynh_script_progression --message="Upgrading Searx..." --weight=7
# Clean venv if it still on python2
test -e $final_path/bin/python3 || ynh_secure_remove --file=$final_path
test -e $final_path/bin/python3 || (
ynh_secure_remove --file=$final_path/lib/python*
ynh_secure_remove --file=$final_path/lib64/python*
ynh_secure_remove --file=$final_path/share/python-wheels
)
ynh_secure_remove $final_path/lib/python2.7/site-packages/setuptools
ynh_secure_remove $final_path/lib/python2.7/site-packages/setuptools-*
python3 -m venv --system-site-packages "$final_path"
set +u; source $final_path/bin/activate; set -u
pip3 install -U pip setuptools
pip3 install -U setuptools
pip3 install --requirement $final_path/requirements-ynh.txt --upgrade
#=================================================