1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/searx_ynh.git synced 2024-09-03 20:16:30 +02:00
This commit is contained in:
ericgaspar 2020-09-19 16:33:03 +02:00
parent 8daed3ddef
commit 5a5985a1e0
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 5 additions and 5 deletions

View file

@ -118,14 +118,14 @@ ynh_system_user_create --username=$app
ynh_script_progression --message="Upgrading Searx..." --weight=7 ynh_script_progression --message="Upgrading Searx..." --weight=7
# Clean venv if it still on python2 # Clean venv if it still on python2
if [ ! -e $final_path/bin/python3 ] if [ ! -e $final_path/bin/python3.7 ]
then then
ynh_secure_remove --file=$final_path/lib/ --regex='python[^/.]*' ynh_secure_remove --file=$final_path/lib/ --regex='python[^/.]*'
ynh_secure_remove --file=$final_path/lib64/ --regex='python[^/.]*' ynh_secure_remove --file=$final_path/lib64/ --regex='python[^/.]*'
ynh_secure_remove --file=$final_path/share/python-wheels ynh_secure_remove --file=$final_path/share/python-wheels
fi fi
ynh_secure_remove --file=$final_path/lib/python3/site-packages/setuptools ynh_secure_remove --file=$final_path/lib/python3.7/site-packages/setuptools
ynh_secure_remove --file=$final_path/lib/python3/site-packages/ --regex='setuptools-[^/.]*' ynh_secure_remove --file=$final_path/lib/python3.7/site-packages/ --regex='setuptools-[^/.]*'
python3 -m venv --system-site-packages "$final_path" python3 -m venv --system-site-packages "$final_path"
set +u; source $final_path/bin/activate; set -u set +u; source $final_path/bin/activate; set -u
pip3 install -U setuptools pip3 install -U setuptools

View file

@ -1,11 +1,11 @@
# Have a look to https://github.com/searx/searx/blob/master/requirements.txt # Have a look to https://github.com/searx/searx/blob/master/requirements.txt
certifi==2020.4.5.1 certifi==2020.4.5.1
#babel==2.7.0 babel==2.7.0
flask-babel==1.0.0 flask-babel==1.0.0
flask==1.1.2 flask==1.1.2
idna==2.9 idna==2.9
jinja2==2.11.1 jinja2==2.11.1
#lxml==4.5.0 lxml==4.5.0
pygments==2.1.3 pygments==2.1.3
pyopenssl==19.1.0 pyopenssl==19.1.0
python-dateutil==2.8.0 python-dateutil==2.8.0