1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/13ft_ynh.git synced 2024-09-03 18:06:03 +02:00

python dependencies on upgrade

Including `requests`
This commit is contained in:
lapineige 2023-01-28 15:20:10 +01:00 committed by GitHub
parent e2582ec7b4
commit 9315b124b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -126,6 +126,19 @@ ynh_script_progression --message="Upgrading dependencies..." --weight=1
ynh_install_app_dependencies $pkg_dependencies
#=================================================
# INSTALL PYTHON DEPENDENCIES
#=================================================
ynh_script_progression --message="Installing python dependencies..." --weight=1
pushd $final_path
python3 -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install -r requirements.txt # should only be flask for now, but just in case
venv/bin/pip install requests
popd
#=================================================
# NGINX CONFIGURATION
#=================================================