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() {
45
45
}
46
46
trap cleanup EXIT
47
47
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/ *
52
52
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
55
55
56
56
# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
57
57
if [ -n " ${BOSKOS_HOST:- } " ]; then
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ cleanup() {
46
46
}
47
47
trap cleanup EXIT
48
48
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/ *
53
53
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
56
56
57
57
# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
58
58
if [ -n " ${BOSKOS_HOST:- } " ]; then
You can’t perform that action at this time.
0 commit comments