first pass at basic AL2022 support

This commit is contained in:
Lee Goolsbee
2022-12-13 09:32:19 -06:00
parent 1124f1ac5a
commit 13cd669a54
16 changed files with 99 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
set -e
source /etc/os-release
if [[ $ID = "amzn" ]]; then
if [[ $ID = "amzn" ]] && [[ $VERSION = "2" ]]; then
amazon-linux-extras enable python3.8
yum clean metadata
yum install -y \
@@ -11,6 +11,11 @@ if [[ $ID = "amzn" ]]; then
python38 \
python38-pip \
python38-devel
elif [[ $ID = "amzn" ]] && [[ $VERSION = "2022" ]]; then
dnf install -y \
python3 \
python3-pip \
python3-devel
else
# FIXME: Currently assumes Debian-based
apt-get update && \