Skip to content

Commit 2cb77db

Browse files
authored
Work around get-pip bug
1 parent 3495868 commit 2cb77db

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docker/build_scripts/build_utils.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ function do_cpython_build {
4545
if [ -e ${prefix}/bin/python3 ]; then
4646
ln -s python3 ${prefix}/bin/python
4747
fi
48-
${prefix}/bin/python get-pip.py
48+
# --force-reinstall is to work around:
49+
# https://github.com/pypa/pip/issues/5220
50+
# https://github.com/pypa/get-pip/issues/19
51+
${prefix}/bin/python get-pip.py --force-reinstall
4952
if [ -e ${prefix}/bin/pip3 ] && [ ! -e ${prefix}/bin/pip ]; then
5053
ln -s pip3 ${prefix}/bin/pip
5154
fi

0 commit comments

Comments
 (0)