Skip to content

Commit

Permalink
Workaround for get-pip when pip+setuptools present
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanlupsa committed Jan 3, 2022
1 parent 3155217 commit f1b966e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/install_pip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ function install_get_pip {
die $LINENO "Download of get-pip.py failed"
touch $LOCAL_PIP.downloaded
fi
# Workaround when pip + setuptools is present alognside distutils
# ref: https://github.com/pypa/pip/issues/10742
# Is idempotent for setuptools but will fail when pip is not present
sudo -H -E python${PYTHON3_VERSION} -m pip uninstall setuptools -y || true
sudo -H -E python${PYTHON3_VERSION} $LOCAL_PIP
}

Expand Down

0 comments on commit f1b966e

Please sign in to comment.