Skip to content

Commit

Permalink
ESO-2568 Change URL that we used to fetch pip installation script (#27)
Browse files Browse the repository at this point in the history
* install pip 20.3.4

* pip==20.3.4

* check python version and install pip

* adding python version check and install corresponding pip

* adding python version check and install corresponding pip

* adding python version check and install corresponding pip

* change from gt to ge in install_pip function

* change from python to PYTHON_PATH

* adding python path with install.sh

* instead of python

* adding python path

* update the url

* clean the comment

* change curl url

* adding check

* clean up comment

* remove extra line before/after install_pip()

Co-authored-by: Ajay Jain <[email protected]>
  • Loading branch information
anwang-vmware and ajayj89 authored Mar 15, 2021
1 parent 1a97e4a commit 001eadc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,11 @@ function remove_python() {

}


function install_pip() {
PYTHON_PATH=$1
ver=$($PYTHON_PATH -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]\).*/\1\2/')
if [ "$ver" -lt "30" ]; then
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py >> ${INSTALL_LOG} 2>&1
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py >> ${INSTALL_LOG} 2>&1
elif [ "$ver" -ge "30" ]; then
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py >> ${INSTALL_LOG} 2>&1
fi
Expand Down

0 comments on commit 001eadc

Please sign in to comment.