Skip to content

Commit

Permalink
Downgrade patchelf version from 0.18.0 to 0.17.2 (#295)
Browse files Browse the repository at this point in the history
Downgrade patchelf version from 0.18.0 to 0.17.2 due to patchelf regression

Patchelf shipped a regression in 0.18.0 and has since yanked the pypi release pointing to
0.17.2 as the most recent version. However, 0.18.0 is still the version shipped in both the apt and yum
repositories, thus we must use pip to install the version we want.
See mayeut/patchelf-pypi#87
  • Loading branch information
nv-kmcgill53 authored and mc-nv committed Jan 31, 2025
1 parent cad4191 commit 0c4cdac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/gen_ort_dockerfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ def dockerfile_for_linux(output_file):
zip \
ca-certificates \
curl \
patchelf \
python3-pip \
git \
gnupg \
gnupg1 \
openssl-devel
RUN pip3 install patchelf==0.17.2
"""
else:
df += """
Expand All @@ -143,13 +143,14 @@ def dockerfile_for_linux(output_file):
curl \
libcurl4-openssl-dev \
libssl-dev \
patchelf \
python3-dev \
python3-pip \
git \
gnupg \
gnupg1
RUN pip3 install patchelf==0.17.2
# Install dependencies from
# onnxruntime/dockerfiles/scripts/install_common_deps.sh.
RUN apt update -q=2 \\
Expand Down

0 comments on commit 0c4cdac

Please sign in to comment.