Preinstall pbr with pip

If you don't already have your setup requires preinstalled they get
pulled down with easy_install. This seems to be less reliable as we have
jobs grabbing things from our mirrors using pip just fine then
immediately fail with easy_install to grab pbr (the setup_requires).

Change-Id: If5abed62db6a237d52098f9c756d999a27c9d461
This commit is contained in:
Clark Boylan 2017-05-22 16:09:33 -07:00
parent 53db8c8d18
commit f006cc6509
1 changed files with 3 additions and 0 deletions

View File

@ -468,6 +468,9 @@ indent df -h
# Install ansible
sudo -H pip install virtualenv
virtualenv /tmp/ansible
# Explicitly install pbr first as this will use pip rathat than
# easy_install. Hope is this is generally more reliable.
/tmp/ansible/bin/pip install pbr
# NOTE(emilien): workaround to avoid installing cryptography
# https://github.com/ansible/ansible/issues/15665
/tmp/ansible/bin/pip install paramiko==1.16.0 ansible==$ANSIBLE_VERSION \