mirror of
https://github.com/YunoHost-Apps/seafile_ynh.git
synced 2024-09-03 20:26:01 +02:00
Fix cffi install issue on bookworm
This commit is contained in:
parent
b18eba135a
commit
a8bd9d6dc0
1 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue