From a8bd9d6dc0a7a47d41eaf9ca3d18494749b2e99f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josu=C3=A9=20Tille?= Date: Thu, 5 Oct 2023 08:20:30 +0200 Subject: [PATCH] Fix cffi install issue on bookworm --- scripts/_common.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/_common.sh b/scripts/_common.sh index a4d92f4..d310254 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -31,7 +31,15 @@ install_dependance() { set -$u_arg; # Note that we install imageio to force the dependance, without this imageio 2.8 is installed and it need python3.5 - pip3 install --upgrade future mysqlclient PyMySQL 'Pillow<10.0.0' pylibmc captcha Jinja2 'SQLAlchemy<2' psd-tools django-pylibmc django-simple-captcha python3-ldap pycryptodome==3.12.0 cffi==1.14.0 lxml + if [ $(lsb_release --codename --short) == "bookworm" ]; then + # Fix cffi installtion issue cf: https://github.com/haiwen/seahub/issues/5166 + pip3 install --upgrade 'cffi==1.15.1' + sed -e "s|1.14.0|1.15.1|" -i $install_dir/seafile-server-$seafile_version/seahub/thirdpart/cffi/__init__.py + else + pip3 install --upgrade cffi==1.14.0 + fi + + pip3 install --upgrade future mysqlclient PyMySQL 'Pillow<10.0.0' pylibmc captcha Jinja2 'SQLAlchemy<2' psd-tools django-pylibmc django-simple-captcha python3-ldap pycryptodome==3.12.0 lxml set +$u_arg; deactivate