Skip to content

Commit 658392e

Browse files
updated build.sh for ppc
1 parent 0ab197b commit 658392e

File tree

1 file changed

+41
-39
lines changed

1 file changed

+41
-39
lines changed

.ci/docker/manywheel/Dockerfile_ppc64le

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,45 @@ ENV LANGUAGE=C.UTF-8
77

88
# Installed needed OS packages. This is to support all
99
# the binary builds (torch, vision, audio, text, data)
10-
RUN apt update ; apt upgrade -y
11-
RUN apt install -y \
12-
build-essential \
13-
autoconf \
14-
automake \
15-
bzip2 \
16-
curl \
17-
diffutils \
18-
file \
19-
git \
20-
make \
21-
patch \
22-
perl \
23-
unzip \
24-
util-linux \
25-
wget \
26-
which \
27-
xz-utils \
28-
less \
29-
zstd \
30-
cmake \
31-
python3 \
32-
python3-dev \
33-
python3-setuptools \
34-
python3-yaml \
35-
python3-typing-extensions \
36-
libblas-dev \
37-
libopenblas-dev \
38-
liblapack-dev \
39-
libatlas-base-dev \
40-
linux-headers-generic \
41-
zlib1g-dev \
42-
libbz2-1.0 \
43-
libncurses5-dev \
44-
libsqlite3-dev \
45-
libdb-dev \
46-
libpcap-dev \
47-
liblzma-dev \
48-
libffi-dev || echo "Some packages could not be installed but are non-critical."
10+
RUN apt update && apt upgrade -y && \
11+
apt install -y \
12+
build-essential \
13+
autoconf \
14+
automake \
15+
bzip2 \
16+
curl \
17+
diffutils \
18+
file \
19+
git \
20+
make \
21+
patch \
22+
perl \
23+
unzip \
24+
util-linux \
25+
wget \
26+
which \
27+
xz-utils \
28+
less \
29+
zstd \
30+
cmake \
31+
python3 \
32+
python3-dev \
33+
python3-setuptools \
34+
python3-yaml \
35+
python3-typing-extensions \
36+
libblas-dev \
37+
libopenblas-dev \
38+
liblapack-dev \
39+
libatlas-base-dev \
40+
linux-headers-generic \
41+
zlib1g-dev \
42+
libbz2-1.0 \
43+
libncurses5-dev \
44+
libsqlite3-dev \
45+
libdb-dev \
46+
libpcap-dev \
47+
liblzma-dev \
48+
libffi-dev || echo "Some packages could not be installed but are non-critical."
4949

5050
# Handle linux-headers installation gracefully
5151
RUN apt-get update && \
@@ -57,6 +57,8 @@ RUN apt-get update && \
5757
# Which causes version check to fail, as pytorch repo is bind-mounted into the image
5858
# Override this behaviour by treating every folder as safe
5959
# For more details see https://github.com/pytorch/pytorch/issues/78659#issuecomment-1144107327
60+
# Confirm git installation to prevent further issues
61+
RUN git --version || (echo "Git installation failed!" && exit 1)
6062
RUN git config --global --add safe.directory "*"
6163

6264
FROM base as openssl

0 commit comments

Comments
 (0)