Skip to content

Commit f28b815

Browse files
authored
Merge pull request #3222 from vkarak/packaging/py37-getpip
[packaging] Update `get-pip.py` url for Python 3.7
2 parents 16f478e + 03c4b42 commit f28b815

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

bootstrap.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,13 @@ trap _destroy_venv EXIT
9999
py_pkg_prefix=external/$(uname -m)
100100

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

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

0 commit comments

Comments
 (0)