Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions deploy/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ if ! apt-cache show "$PYTHON" >/dev/null 2>&1; then
| sudo tee /etc/apt/apt.conf.d/52loopify-deadsnakes >/dev/null
fi

# The PPA is trusted for the interpreter and nothing else. Without this, a
# package it published under a system name (openssl, openssh-server) with a
# higher version would replace the system's, unattended and as root. Outside
# the block above so that re-running this on a host that already has the PPA
# writes it too.
if compgen -G "/etc/apt/sources.list.d/deadsnakes-*" >/dev/null; then
sudo tee /etc/apt/preferences.d/loopify-deadsnakes >/dev/null <<'PIN'
Package: python3.14 python3.14-* libpython3.14 libpython3.14-*
Pin: release o=LP-PPA-deadsnakes
Pin-Priority: 500

Package: *
Pin: release o=LP-PPA-deadsnakes
Pin-Priority: -1
PIN
fi

sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
ffmpeg "$PYTHON" "$PYTHON-venv" git unzip curl

Expand Down
Loading