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" )