File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ cleanup() {
4545}
4646trap cleanup EXIT
4747
48- # Set correct pip3.7 location for python3 .
49- if ! test -f /usr/bin/pip3.7 && test -f /usr/local/bin/pip3.7 ; then
50- ln -s /usr/local/bin/pip3.7 /usr/bin/pip3.7
51- fi
48+ # Ensure that python3-pip is installed .
49+ apt update
50+ apt install -y python3-pip
51+ rm -rf /var/lib/apt/lists/ *
5252
53- # Install requests module explicitly for HTTP calls.
54- python3 -m pip install requests
53+ # Install/upgrade pip and requests module explicitly for HTTP calls.
54+ python3 -m pip install --upgrade pip requests
5555
5656# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
5757if [ -n " ${BOSKOS_HOST:- } " ]; then
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ cleanup() {
4646}
4747trap cleanup EXIT
4848
49- # Set correct pip3.7 location for python3 .
50- if ! test -f /usr/bin/pip3.7 && test -f /usr/local/bin/pip3.7 ; then
51- ln -s /usr/local/bin/pip3.7 /usr/bin/pip3.7
52- fi
49+ # Ensure that python3-pip is installed .
50+ apt update
51+ apt install -y python3-pip
52+ rm -rf /var/lib/apt/lists/ *
5353
54- # Install requests module explicitly for HTTP calls.
55- python3 -m pip install requests
54+ # Install/upgrade pip and requests module explicitly for HTTP calls.
55+ python3 -m pip install --upgrade pip requests
5656
5757# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
5858if [ -n " ${BOSKOS_HOST:- } " ]; then
You can’t perform that action at this time.
0 commit comments