Skip to content

Commit 5469fec

Browse files
committed
Fix a recent issue /usr/bin/python3.8: No module named pip in our build_clif.sh.
PiperOrigin-RevId: 420775145
1 parent 9cf1c7b commit 5469fec

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tools/build_clif.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,8 @@ apt-get remove "${APT_ARGS[@]}" libclang-common-9-dev
9191
apt-get update "${APT_ARGS[@]}" && \
9292
apt-get install "${APT_ARGS[@]}" \
9393
"python$CLIF_PYTHON_VERSION-dev" \
94-
"python$CLIF_PYTHON_VERSION-distutils"
95-
96-
# Install latest version of pip since the version on ubuntu could be outdated
97-
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
98-
"python$CLIF_PYTHON_VERSION" get-pip.py && \
99-
rm get-pip.py
94+
"python$CLIF_PYTHON_VERSION-distutils" \
95+
"python3-pip"
10096

10197
# Compile and install absl-cpp from source
10298
wget "https://github.com/abseil/abseil-cpp/archive/$ABSL_VERSION.tar.gz" && \
@@ -125,7 +121,7 @@ cd /usr/src/googletest && \
125121
make install
126122

127123
# Install python runtime and test dependencies
128-
"python$CLIF_PYTHON_VERSION" -m pip install \
124+
pip3 install \
129125
absl-py \
130126
parameterized \
131127
protobuf=="$PROTOBUF_VERSION" \

0 commit comments

Comments
 (0)