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
This commit is contained in:
parent
2cedd93c02
commit
a3caa9ed5b
@ -31,6 +31,8 @@
|
|||||||
cd {{ ansible_user_dir }}/src/opendev.org/zuul/zuul
|
cd {{ ansible_user_dir }}/src/opendev.org/zuul/zuul
|
||||||
# This should run anywhere without too much logic ...
|
# This should run anywhere without too much logic ...
|
||||||
run_pip=$(command -v pip3 || command -v pip2 || command -v pip)
|
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 .
|
$run_pip wheel --no-deps .
|
||||||
ls zuul-*.whl || exit 1
|
ls zuul-*.whl || exit 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user