Skip to content

Commit a91b19f

Browse files
committed
fix (rockylinux8): install newer python
re2c requires Python 3.7+ but Rocky Linux 8 defaults to Python 3.6. These changes upgrade python for the re2c dependency.
1 parent a0b18dc commit a91b19f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

slurm_factory/constants.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
dnf config-manager --set-enabled powertools || exit 1
3434
# Update system packages AND install build tools in one transaction
3535
# This ensures glibc and gcc versions are compatible
36+
# Note: python39 is required because re2c needs Python 3.7+, and Rocky 8 defaults to Python 3.6
3637
yum update -y && yum install -y \
3738
gcc \
3839
gcc-c++ \
@@ -46,8 +47,8 @@
4647
lua-filesystem \
4748
lua-posix \
4849
Lmod \
49-
python3 \
50-
python3-pip \
50+
python39 \
51+
python39-pip \
5152
which \
5253
patch \
5354
xz \
@@ -57,6 +58,8 @@
5758
kernel-headers \
5859
lbzip2 \
5960
sssd-client
61+
# Set python3.9 as the default python3 (re2c and other tools need Python 3.7+)
62+
alternatives --set python3 /usr/bin/python3.9
6063
yum clean all && rm -rf /var/cache/yum
6164
PIP_BREAK_SYSTEM_PACKAGES=1 pip3 install boto3
6265
"""

0 commit comments

Comments
 (0)