diff --git a/scripts/_common.sh b/scripts/_common.sh index 0cf1254..e6c0cf9 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -112,7 +112,11 @@ extract_source() { } install_dependance() { - ynh_install_app_dependencies python2.7 python-pip python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev + if [ "$(lsb_release --codename --short)" == "stretch" ]; then + ynh_install_app_dependencies python2.7 python-pip python-setuptools python-simplejson python-imaging python-mysqldb python-flup expect python-requests python-dev + else + ynh_install_app_dependencies python2.7 python-pip python-setuptools python-simplejson python-pil python-mysqldb python-flup expect python-requests python-dev + fi # Upgrade setuptools for jessie because the new moviepy package is not compatible with setuptools 5.x [ "$(lsb_release --codename --short)" = "jessie" ] && pip install --upgrade setuptools pip install Pillow 'moviepy<1.0' 'imageio<2.8' certifi idna