Dispy-P3BOT/install_deps_debian.sh

33 lines
762 B
Bash
Executable File

#!/usr/bin/env bash
#
# Install system dependencies for Dispy-P3BOT on Debian / Ubuntu.
#
# Installs Python + venv, pip, and ffmpeg. The build tools + libffi headers
# are there in case pip has to compile PyNaCl (the voice dependency) from
# source. 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 \
python3-dev
echo
echo "Done. Next steps:"
echo " cp radioconfig.json.template radioconfig.json # then edit it"
echo " ./run.sh"