Tools: add alpine initial prereqs script

This commit is contained in:
Pierre Kancir 2024-08-13 00:23:35 +02:00 committed by Peter Barker
parent ca9a504c4f
commit de85705941
1 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#!/usr/bin/env sh
echo "---------- $0 start ----------"
set -e
set -x
echo "==================================================================="
echo "Warning: This script is not fully tested. Please report any issues."
echo "==================================================================="
apk update && apk add --no-cache \
linux-headers \
g++ \
python3 \
py-future \
py-pip \
libxml2-dev \
libxslt-dev \
git \
&& ln -sf python3 /usr/bin/python \
&& rm -rf /var/cache/apk/*
python3 -m pip install --user --no-deps --no-cache-dir empy==3.3.4 pexpect ptyprocess --break-system-packages