3030
3131echo " $0 running from $( pwd) "
3232
33-
34- function setup_centos {
35- # CentOS container setup
36- yum install -q -y python python3 epel-release curl
37- }
38-
3933function setup_ubuntu {
4034 # Ubuntu container setup
4135 apt-get update
42- apt-get install -y python python3 curl
36+ apt-get install -y python3.8 curl
4337 # python3-distutils is required on Ubuntu 18.04 and later but does
4438 # not exist on 14.04.
45- apt-get install -y python3-distutils || true
39+ apt-get install -y python3.8 -distutils || true
4640}
4741
4842
@@ -57,9 +51,7 @@ function run_single_in_docker {
5751 fi
5852
5953 # Detect OS
60- if grep -qi centos /etc/system-release /etc/redhat-release 2> /dev/null ; then
61- setup_centos
62- elif grep -qiE ' ubuntu|debian' /etc/os-release 2> /dev/null ; then
54+ if grep -qiE ' ubuntu|debian' /etc/os-release 2> /dev/null ; then
6355 setup_ubuntu
6456 else
6557 echo " WARNING: Don't know what platform I'm on: $( uname -a) "
@@ -69,7 +61,7 @@ function run_single_in_docker {
6961 # in a plethora of possibly outdated Python requirements that
7062 # might interfere with the newer packages from PyPi, such as six.
7163 # Instead install it directly from PyPa.
72- curl https://bootstrap.pypa.io/get-pip.py | python
64+ curl https://bootstrap.pypa.io/get-pip.py | python3.8
7365
7466 /io/tools/smoketest.sh " $wheelhouse "
7567}
@@ -86,8 +78,7 @@ function run_all_with_docker {
8678
8779 [[ ! -z $DOCKER_IMAGES ]] || \
8880 # LTS and stable release of popular Linux distros.
89- # We require >= Python 2.7 to be available (which rules out Centos 6.6)
90- DOCKER_IMAGES=" ubuntu:14.04 ubuntu:16.04 ubuntu:18.04 ubuntu:20.04 centos:7 centos:8"
81+ DOCKER_IMAGES=" ubuntu:18.04 ubuntu:20.04"
9182
9283
9384 _wheels=" $wheelhouse /*manylinux*.whl"
0 commit comments