From 9315b124b8e66c398c846669a235f7db398ed838 Mon Sep 17 00:00:00 2001 From: lapineige Date: Sat, 28 Jan 2023 15:20:10 +0100 Subject: [PATCH] python dependencies on upgrade Including `requests` --- scripts/upgrade | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/upgrade b/scripts/upgrade index 9ca2306..e7e66ea 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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 #=================================================