@@ -88,7 +88,7 @@ dnf update -y
8888
8989# Enable EPEL
9090dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-${VERSION_ID} .noarch.rpm || true
91- # PowerTools for Alma 8
91+ # PowerTools for Alma 8 and python 3.12
9292if [[ ${VERSION_ID} -eq 8 ]]; then
9393 dnf install -y ' dnf-command(config-manager)'
9494 dnf config-manager --set-enabled powertools
@@ -110,15 +110,21 @@ dnf groupinstall -y 'Development Tools'
110110
111111# Dependencies for make couch, except erlang and package building stuff.
112112# help2man is for docs
113- yum install -y sudo git wget which autoconf autoconf-archive automake curl-devel libicu-devel \
113+ dnf install -y sudo git wget which autoconf autoconf-archive automake curl-devel libicu-devel \
114114 libtool ncurses-devel nspr-devel zip readline-devel unzip perl \
115115 createrepo xfsprogs-devel java-21-openjdk-devel rpmdevtools
116116if [[ ${VERSION_ID} -eq 9 ]]; then
117117 dnf --enablerepo=crb install -y help2man
118- else
118+ elif [[ ${VERSION_ID} -eq 8 ]] ; then
119119 dnf install -y help2man
120120fi
121121
122+ dnf install -y python3.12 python3.12-pip python3.12-wheel
123+ alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 99
124+ alternatives --set python3 /usr/bin/python3.12
125+ alternatives --install /usr/bin/pip3 pip3 /usr/bin/pip3.12 99
126+ alternatives --set pip3 /usr/bin/pip3.12
127+
122128# Node.js
123129pushd /tmp
124130wget https://rpm.nodesource.com/setup_${NODEVERSION} .x
@@ -143,20 +149,6 @@ rm setup_${NODEVERSION}.x
143149npm install npm@latest -g
144150popd
145151
146- # python for testing and documentaiton
147- if [[ ${VERSION_ID} -eq 8 ]]; then
148- dnf install -y python3-pip python3-virtualenv
149- PIP=pip3
150- else
151- dnf install -y python3-pip
152- PIP=pip3
153- fi
154-
155- ${PIP} --default-timeout=1000 install docutils==0.13.1 sphinx==1.5.3 sphinx_rtd_theme \
156- typing nose requests hypothesis==3.79.0
157- if [[ ${VERSION_ID} -eq 9 ]]; then
158- ${PIP} --default-timeout=1000 install wheel virtualenv
159- fi
160152
161153# js packages, as long as we're not told to skip them
162154if [[ $1 != " nojs" ]]; then
0 commit comments