Skip to content

Commit b5acb92

Browse files
updated build.sh for ppc
1 parent 70d3bad commit b5acb92

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.ci/docker/manywheel/Dockerfile_ppc64le

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ RUN apt install -y \
3838
liblapack-dev \
3939
libatlas-base-dev
4040

41-
RUN apt install -y linux-headers-$(uname -r) || apt install -y linux-headers-generic
41+
# Handle linux-headers installation gracefully
42+
RUN apt-get update && \
43+
(apt install -y linux-headers-$(uname -r) || apt install -y linux-headers-generic || \
44+
echo "Skipping linux-headers installation as it is not critical") && \
45+
apt-get clean && rm -rf /var/lib/apt/lists/*
4246

4347
# git236+ would refuse to run git commands in repos owned by other users
4448
# Which causes version check to fail, as pytorch repo is bind-mounted into the image

0 commit comments

Comments
 (0)