Skip to content

Commit 2c42c56

Browse files
maksleventalvwbaker
authored andcommitted
[Docker] fix Almalinux 8 wrong default Python3 (triton-lang#6872)
1 parent cc6c523 commit 2c42c56

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/llvm-build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
pull_request:
1010
paths:
1111
- .github/workflows/llvm-build.yml
12+
- .github/workflows/llvm-build/almalinux.Dockerfile
13+
- .github/workflows/llvm-build/centos.Dockerfile
1214
workflow_dispatch:
1315

1416
env:

.github/workflows/llvm-build/almalinux.Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM almalinux:8
1+
# https://github.com/AlmaLinux/container-images/blob/9f9b3c8c8cf4a57fd42f362570ff47c75788031f/default/amd64/Dockerfile
2+
FROM almalinux:8.10-20250411
23
ARG llvm_dir=llvm-project
34
# Add the cache artifacts and the LLVM source tree to the container
45
ADD sccache /sccache
@@ -8,6 +9,7 @@ ENV SCCACHE_CACHE_SIZE="2G"
89

910
RUN dnf install --assumeyes llvm-toolset
1011
RUN dnf install --assumeyes python38-pip python38-devel git
12+
RUN alternatives --set python3 /usr/bin/python3.8
1113

1214
RUN python3 -m pip install --upgrade pip
1315
RUN python3 -m pip install --upgrade cmake ninja sccache lit
@@ -26,6 +28,8 @@ RUN cmake -GNinja -Bbuild \
2628
-DCMAKE_CXX_FLAGS="-Wno-everything" \
2729
-DCMAKE_LINKER=lld \
2830
-DCMAKE_INSTALL_PREFIX="/install" \
31+
-DPython3_EXECUTABLE="/usr/bin/python3.8" \
32+
-DPython_EXECUTABLE="/usr/bin/python3.8" \
2933
-DLLVM_BUILD_UTILS=ON \
3034
-DLLVM_BUILD_TOOLS=ON \
3135
-DLLVM_ENABLE_ASSERTIONS=ON \

0 commit comments

Comments
 (0)