Update dependencies and Python version in install script

Added pciutils to the list of dependencies and updated the Python version used for setup_uv from 3.12 to 3.13. Removed duplicate setup_uv and fetch_and_deploy_gh_release calls to streamline the installation process.
This commit is contained in:
CanbiZ 2025-09-29 10:14:16 +02:00
parent d0ce943d6c
commit 88fd3a63ed

View File

@ -16,15 +16,15 @@ update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt-get install -y \ $STD apt-get install -y \
python3-opencv jq \ python3-opencv jq \
libgl1-mesa-glx libglib2.0-0 \ libgl1-mesa-glx libglib2.0-0 pciutils \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 \ libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 \
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav \ gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-libav \
build-essential python3-dev python3-gi pkg-config libcairo2-dev gir1.2-glib-2.0 \ build-essential python3-dev python3-gi pkg-config libcairo2-dev gir1.2-glib-2.0 \
cmake gfortran libopenblas-dev liblapack-dev libgirepository1.0-dev git cmake gfortran libopenblas-dev liblapack-dev libgirepository1.0-dev git
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
PYTHON_VERSION="3.12" setup_uv
PG_VERSION="16" setup_postgresql PG_VERSION="16" setup_postgresql
PYTHON_VERSION="3.13" setup_uv
msg_info "Setting up PostgreSQL Database" msg_info "Setting up PostgreSQL Database"
DB_NAME=viseron DB_NAME=viseron
@ -51,9 +51,6 @@ if [[ "$CTTYPE" == "0" ]]; then
fi fi
msg_ok "Hardware Acceleration Configured" msg_ok "Hardware Acceleration Configured"
PYTHON_VERSION="3.13" setup_uv
fetch_and_deploy_gh_release "viseron" "roflcoopter/viseron" "tarball" "latest" "/opt/viseron"
msg_info "Setting up Python Environment" msg_info "Setting up Python Environment"
uv venv --python "python3.13" /opt/viseron/.venv uv venv --python "python3.13" /opt/viseron/.venv
uv pip install --python /opt/viseron/.venv/bin/python --upgrade pip setuptools wheel uv pip install --python /opt/viseron/.venv/bin/python --upgrade pip setuptools wheel