Skip to content

Commit 001eadc

Browse files
ESO-2568 Change URL that we used to fetch pip installation script (#27)
* 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 <32074182+ajayj89@users.noreply.github.com>
1 parent 1a97e4a commit 001eadc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sh/install.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,11 @@ function remove_python() {
132132

133133
}
134134

135-
136135
function install_pip() {
137136
PYTHON_PATH=$1
138137
ver=$($PYTHON_PATH -V 2>&1 | sed 's/.* \([0-9]\).\([0-9]\).*/\1\2/')
139138
if [ "$ver" -lt "30" ]; then
140-
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/2.7/get-pip.py >> ${INSTALL_LOG} 2>&1
139+
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.py >> ${INSTALL_LOG} 2>&1
141140
elif [ "$ver" -ge "30" ]; then
142141
curl -o /tmp/get-pip.py https://bootstrap.pypa.io/get-pip.py >> ${INSTALL_LOG} 2>&1
143142
fi

0 commit comments

Comments
 (0)