From a3caa9ed5b3b54010f7095d37b5050ac9e463607 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Thu, 9 Sep 2021 17:46:50 +0000 Subject: [PATCH] Preinstall PBR in ensure-pip test playbook Work around lack of SNI support in old distutils versions shipped with Python on platforms like CentOS 7 and Ubuntu 16.04 LTS by installing PBR first so that distutils won't be compelled to do so. Warehouse (PyPI) ceased supporting clients without SNI support in March of this year. Change-Id: Ic741d9a87c2ca3a5249cd03c3cbd38e2ad1f46a1 --- test-playbooks/ensure-pip.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test-playbooks/ensure-pip.yaml b/test-playbooks/ensure-pip.yaml index f8eaa529a..2fe57d56a 100644 --- a/test-playbooks/ensure-pip.yaml +++ b/test-playbooks/ensure-pip.yaml @@ -31,6 +31,8 @@ cd {{ ansible_user_dir }}/src/opendev.org/zuul/zuul # This should run anywhere without too much logic ... run_pip=$(command -v pip3 || command -v pip2 || command -v pip) + # Preinstall pbr to work around very old distutils lacking SNI support + $run_pip install pbr $run_pip wheel --no-deps . ls zuul-*.whl || exit 1