Skip to content

Commit 6bc33d0

Browse files
committed
RHEL8 PYBE
1 parent afe4270 commit 6bc33d0

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

build.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,22 @@ def dockerfile_prepare_container_linux(argmap, backends, enable_gpu, target_mach
13891389

13901390
# Add dependencies needed for python backend
13911391
if "python" in backends:
1392-
df += """
1392+
if target_platform() == "rhel":
1393+
df += """
1394+
# python3, python3-pip and some pip installs required for the python backend
1395+
RUN yum install -y \\
1396+
libarchive-devel \\
1397+
python3-devel \\
1398+
python3-pip
1399+
&& pip3 install --upgrade pip \\
1400+
&& pip3 install --upgrade \\
1401+
wheel \\
1402+
setuptools \\
1403+
\"numpy<2\" \\
1404+
virtualenv \\
1405+
"""
1406+
else:
1407+
df += """
13931408
# python3, python3-pip and some pip installs required for the python backend
13941409
RUN apt-get update \\
13951410
&& apt-get install -y --no-install-recommends \\

0 commit comments

Comments
 (0)