From 674bb2ca25852da3d8d0402618d8273dfa119cd4 Mon Sep 17 00:00:00 2001 From: JensDiemer Date: Mon, 22 Nov 2021 23:53:57 +0100 Subject: [PATCH] install Cython to fix #15 --- scripts/install | 5 +++++ scripts/restore | 5 +++++ scripts/upgrade | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/scripts/install b/scripts/install index d1ffc86..6f1bdff 100755 --- a/scripts/install +++ b/scripts/install @@ -113,6 +113,11 @@ chown -R "$app:" "$final_path" source "${final_path}/venv/bin/activate" set -o nounset ynh_exec_as $app $final_path/venv/bin/pip install --upgrade wheel pip + + # for installing packages like "matplotlib" + # See: https://github.com/YunoHost-Apps/django-for-runners_ynh/issues/15 + ynh_exec_as $app $final_path/venv/bin/pip install --upgrade --prefer-binary Cython + ynh_exec_as $app $final_path/venv/bin/pip install --no-deps --prefer-binary -r "$final_path/requirements.txt" ) diff --git a/scripts/restore b/scripts/restore index 78760ee..96bd9c8 100755 --- a/scripts/restore +++ b/scripts/restore @@ -96,6 +96,11 @@ python3 -m venv "${final_path}/venv" source "${final_path}/venv/bin/activate" set -o nounset ynh_exec_as $app $final_path/venv/bin/pip install --upgrade wheel pip + + # for installing packages like "matplotlib" + # See: https://github.com/YunoHost-Apps/django-for-runners_ynh/issues/15 + ynh_exec_as $app $final_path/venv/bin/pip install --upgrade --prefer-binary Cython + ynh_exec_as $app $final_path/venv/bin/pip install --no-deps --prefer-binary -r "$final_path/requirements.txt" ) diff --git a/scripts/upgrade b/scripts/upgrade index 8545ff7..552b643 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -97,6 +97,11 @@ chown -R "$app:" "$final_path" source "${final_path}/venv/bin/activate" set -o nounset ynh_exec_as $app $final_path/venv/bin/pip install --upgrade wheel pip + + # for installing packages like "matplotlib" + # See: https://github.com/YunoHost-Apps/django-for-runners_ynh/issues/15 + ynh_exec_as $app $final_path/venv/bin/pip install --upgrade --prefer-binary Cython + ynh_exec_as $app $final_path/venv/bin/pip install --no-deps --prefer-binary -r "$final_path/requirements.txt" )