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:
parent
a81ba55843
commit
28e855a2b8
2 changed files with 9 additions and 3 deletions
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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
|
||||
|
||||
#=================================================
|
||||
|
|
Loading…
Add table
Reference in a new issue