#!/usr/bin/env bash # # Install system dependencies for Dispy-P3BOT on Arch Linux (and derivatives). # # Installs Python + venv, pip, and ffmpeg. After this, run ./run.sh which # creates the virtualenv and installs the Python packages (discord.py, etc). set -euo pipefail if [[ $EUID -eq 0 ]]; then SUDO="" else SUDO="sudo" fi echo "Installing dependencies with pacman ..." $SUDO pacman -Sy --needed --noconfirm \ python \ python-pip \ ffmpeg \ base-devel echo echo "Done. Next steps:" echo " cp radioconfig.json.template radioconfig.json # then edit it" echo " ./run.sh"