Skip to content

Commit 3cbc27a

Browse files
authored
GH-48736: [CI][Python] Restore AlmaLinux 8 support of dev/release/setup-rhel-rebuilds.sh for wheel verification (#48748)
### Rationale for this change GH-48414 removed AlmaLinux 8 support from `dev/release/setup-rhel-rebuilds.sh`. But we need to restore it for wheel verification. ### What changes are included in this PR? * Enable `powertools` repository for some development packages * Use Python 3.12 explicitly ### Are these changes tested? Yes. ### Are there any user-facing changes? No. * GitHub Issue: #48736 Lead-authored-by: Sutou Kouhei <kou@clear-code.com> Co-authored-by: Sutou Kouhei <kou@cozmixng.org> Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
1 parent 2ed8665 commit 3cbc27a

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

dev/release/setup-rhel-rebuilds.sh

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,22 @@
1616
# specific language governing permissions and limitations
1717
# under the License.
1818

19-
# A script to install dependencies required for release
20-
# verification on Red Hat Enterprise Linux 10 clones in particular
21-
# on AlmaLinux 10
19+
# A script to install dependencies required for release verification
20+
# on Red Hat Enterprise Linux 8 or later clones in particular on
21+
# AlmaLinux 8 or later.
2222

2323
set -exu
2424

25-
dnf -y install 'dnf-command(config-manager)'
25+
# shellcheck source=/dev/null
26+
distribution_version=$(. /etc/os-release && echo "${VERSION_ID}" | grep -o "^[0-9]*")
27+
28+
if [ "${distribution_version}" -eq 8 ]; then
29+
dnf -y install 'dnf-command(config-manager)'
30+
dnf config-manager --set-enabled powertools
31+
python_devel=python3.12-devel
32+
else
33+
python_devel=python3-devel
34+
fi
2635
dnf -y update
2736
dnf -y groupinstall "Development Tools"
2837
dnf -y install \
@@ -35,7 +44,7 @@ dnf -y install \
3544
ncurses-devel \
3645
ninja-build \
3746
openssl-devel \
38-
python3-devel \
47+
${python_devel} \
3948
ruby-devel \
4049
sqlite-devel \
4150
vala-devel \

0 commit comments

Comments
 (0)