fix: pre-install cffi>=1.17 for Python 3.13 compatibility
Docker Build and Push / lint (pull_request) Successful in 8s
Docker Build and Push / build (pull_request) Failing after 1m46s
Docker Build and Push / test (pull_request) Has been skipped
Docker Build and Push / push (pull_request) Has been skipped

SABnzbd's requirements.txt pins cffi 1.15.1 which uses the removed
_PyErr_WriteUnraisableMsg API (Python 3.13+). Pre-install cffi>=1.17
so pip doesn't try to build the incompatible version.
This commit is contained in:
2026-06-12 08:17:49 -04:00
parent 2edb1909df
commit bfc1e68e90
+1
View File
@@ -33,6 +33,7 @@ RUN export SABNZBD_VERSION=3.7.2 PAR2CMDLINE_VERSION=v0.6.14-mt1 && \
curl -SL -o /tmp/sabnzbd.tar.gz https://github.com/sabnzbd/sabnzbd/releases/download/${SABNZBD_VERSION}/SABnzbd-${SABNZBD_VERSION}-src.tar.gz && \
tar xzf /tmp/sabnzbd.tar.gz && \
mv SABnzbd-* sabnzbd && \
pip3 install 'cffi>=1.17' && \
pip3 install -r /sabnzbd/requirements.txt && \
chown -R sabnzbd: sabnzbd && \
curl -o /tmp/par2cmdline-mt.tar.gz https://codeload.github.com/jkansanen/par2cmdline-mt/tar.gz/${PAR2CMDLINE_VERSION} && \