Cleanup dependancy management

This commit is contained in:
Josué Tille 2023-10-25 22:23:20 +02:00
parent f5f34ff829
commit 8fc798ef47
No known key found for this signature in database
GPG key ID: 716A6C99B04194EF
2 changed files with 7 additions and 3 deletions

View file

@ -111,7 +111,7 @@ ram.runtime = "500M"
armhf.sha256 = "171fcf08b726d452e1c4cd22dadb9f8f5cf6848424ebc1e04cde5be34ef3d7f6"
[resources.apt]
packages = ["expect", "ffmpeg", "pkgconf",
packages = ["expect", "ffmpeg",
"python3", "python3-venv", "python3-setuptools", "python3-pip", "python3-dev",
"python3-requests", "python3-scipy", "python3-matplotlib",
"mariadb-server", "libmariadb-dev-compat", "libmariadb-dev",

View file

@ -38,8 +38,12 @@ install_dependance() {
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
if [ -n "$(uname -m | grep x86_64)" ]; then
py_dependancy="django==3.2.* Pillow<10.0.0 pylibmc captcha jinja2 SQLAlchemy<2 django-pylibmc django-simple-captcha python3-ldap mysqlclient pycryptodome==3.12.0 lxml python3-ldap"
else
py_dependancy="lxml python3-ldap"
fi
pip3 install --upgrade --timeout=3600 $py_dependancy
set +$u_arg;
deactivate