File size: 848 Bytes
d8ad0fd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | #!/bin/sh
al2_versions=("3.8" "3.9" "3.10" "3.11")
# Flag to indicate if the version is al2 or not
is_al2=0
for version in "${al2_versions[@]}"; do
if [ "$PYTHON_VERSION" = "$version" ]; then
is_al2=1
break
fi
done
if [ "$is_al2" -eq 1 ]; then
yum update -y && yum install -y zip unzip wget tar gzip binutils
yum install -y \
boost-devel \
jemalloc-devel \
bison \
make \
gcc \
gcc-c++ \
flex \
autoconf \
zip \
git \
ninja-build
else
dnf update -y && dnf install -y zip unzip wget tar gzip binutils
dnf install -y \
boost-devel \
jemalloc-devel \
bison \
make \
gcc \
gcc-c++ \
flex \
autoconf \
zip \
git \
ninja-build
fi
|