#!/usr/bin/env bash # # Install system dependencies for Dispy-P3BOT on Raspberry Pi OS (Raspbian). # # Same apt packages as Debian. The build tools + libffi headers matter more # here: on ARM, pip sometimes has to compile PyNaCl (the voice dependency) # from source rather than using a prebuilt wheel. After this, run ./run.sh # which creates the virtualenv and installs the Python packages. set -euo pipefail if [[ $EUID -eq 0 ]]; then SUDO="" else SUDO="sudo" fi echo "Installing dependencies with apt ..." $SUDO apt-get update $SUDO apt-get install -y --no-install-recommends \ python3 \ python3-venv \ python3-pip \ ffmpeg \ build-essential \ libffi-dev \ libsodium-dev \ python3-dev echo echo "Done. Next steps:" echo " cp radioconfig.json.template radioconfig.json # then edit it" echo " ./run.sh"