Use pysqlite3-binary on Debian 13+ in install script

Updated the installation script to install the pre-built pysqlite3-binary package on Debian 13 (Python 3.12+) instead of building pysqlite3 from source. This improves compatibility and reduces build time for newer Debian versions.
This commit is contained in:
CanbiZ (MickLesk) 2026-01-30 16:20:37 +01:00
parent 07c2407158
commit da9d6a91a3

View File

@ -165,9 +165,14 @@ $STD pip3 install -r /opt/frigate/docker/main/requirements.txt
msg_ok "Installed Python Dependencies"
msg_info "Building Python Wheels (Patience)"
mkdir -p /wheels
if [[ "$VERSION_ID" == "13" ]]; then
# Debian 13 (Python 3.12+): Use pre-built pysqlite3-binary instead of building from source
$STD pip3 install pysqlite3-binary
else
sed -i 's|^SQLITE3_VERSION=.*|SQLITE3_VERSION="version-3.46.0"|g' /opt/frigate/docker/main/build_pysqlite3.sh
$STD bash /opt/frigate/docker/main/build_pysqlite3.sh
mkdir -p /wheels
fi
for i in {1..3}; do
$STD pip3 wheel --wheel-dir=/wheels -r /opt/frigate/docker/main/requirements-wheels.txt --default-timeout=300 --retries=3 && break
[[ $i -lt 3 ]] && sleep 10