Skip to content

Commit

Permalink
Update get-pip.py url for Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarak committed Jun 28, 2024
1 parent 4657802 commit 74c0eaf
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,13 @@ trap _destroy_venv EXIT
py_pkg_prefix=external/$(uname -m)

# Install a fresh pip in the current environment
if $python -c 'import sys; sys.exit(sys.version_info[:2] == (3, 6))'; then
get_pip_url="https://bootstrap.pypa.io/get-pip.py"
else
pyver=$(python3 -c 'import sys; print(".".join(str(s) for s in sys.version_info[:2]))')
if [ "$pyver" == "3.6" ]; then
get_pip_url="https://bootstrap.pypa.io/pip/3.6/get-pip.py"
elif [ "$pyver" == "3.7" ]; then
get_pip_url="https://bootstrap.pypa.io/pip/3.7/get-pip.py"
else
get_pip_url="https://bootstrap.pypa.io/get-pip.py"
fi

if ! type "curl" > /dev/null 2>&1; then
Expand Down

0 comments on commit 74c0eaf

Please sign in to comment.