10 Commits

Author SHA1 Message Date
Jeremy Stanley
9a86d81abb Use versioned get-pip.py URL for Ubuntu Bionic
Pip 22.0 doesn't support Python versions prior to 3.7, so the
unversioned get-pip.py script refuses to run under Ubuntu Bionic's
default python3 interpreter. Add a 3.6-specific URL instead to work
around this.

Change-Id: Icab5f4dd45d8f290a2f52db083cdc564e5a08776
2022-01-30 15:37:58 +00:00
Jens Harbott
88139ef622 Install pbr in pip3 role to fix issue xenial
When installing bots on eavesdrop with py27/py35, there is a
regression with the latest pbr release. The workaround is to
have pbr preinstalled in the pip3 role.

Change-Id: I5ea790a50e180df36b480dcbb13530a80f398b5e
2021-05-27 12:35:25 +02:00
Daniel Pawlik
97942432c5 Change get-pip url
The path for get-pip.py script in version 3.5 has been changed
with this commit [1].

[1] 2360f025eb

Change-Id: Ie13a6597c23c0a376f9feba2aed664e1129c5b60
2021-03-08 15:03:43 +01:00
Guillaume Chauvel
0867988745 Install get-pip.py for python3.5/xenial with specific url
The get-pip script does not work well with python3.5/xenial
It raises error during installation [1].
Use python3.5 specific url to install working version.

[1] https://github.com/pypa/get-pip/issues/83

Change-Id: Iea35d9df1ea5f2b8ea5e5d29b4c79e97c99848a1
2021-01-25 19:49:02 +01:00
Clark Boylan
02a81a5c7f Install pip3 for docker-compose installation
We need newer docker-compose for functionality like stop_grace_period
and the easiest way to get that is via pypi. To install from there we
need pip.

This also fixes pip3 to work on xenial which doesn't have a
python3-distutils package.

Change-Id: I5f5431cac7eb191f2f5443892292ca5a236fe1e6
2020-04-17 13:28:03 -07:00
Ian Wienand
44335ab2be pip3: Add python3-distutils
This is a requirement, otherwise get-pip.py fails to install

Change-Id: If8dc87d3755056af52f7f7415f6596071ac5feef
2020-03-13 10:38:52 +11:00
Monty Taylor
7c86c4d067 Update pip3 role to install from get-pip.py
Our base images have pip pre-installed from get-pip. This means
that the installation of pip and virtualenv from distro packages
in the ansible is misleading.

Update the role to match reality.

Change-Id: I500b14f9f9df00b6e0c4f152f8b4c7faa1bb94d4
2019-12-17 08:13:34 -05:00
Jens Harbott
fc2e7dbe01 Make the pip3 role really install something
It seems that the package module doesn't have a default value for the
state of a package. So not specifying it is essentially a no-op. Specify
state: present so that we really get the packages installed that we want
to have.

Change-Id: Ied9484c74922b9f48e14205b73ca95066a68a87f
2018-10-31 15:21:33 +00:00
Paul Belanger
30c2e03281 Don't use loops with package task
We can directly pass a list of packages to the package task in ansible,
this will help save us some times on run times.

Change-Id: I9b26f4f4f9731dc7d32186584620f1cec04b7a81
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2018-08-28 18:32:42 -04:00
Monty Taylor
1c7a2f766d
Add pip and virtualenv to bridge.openstack.org
pip and virtualenv are important, mmkay?

Change-Id: Id009b079077f41c6c9eb4dcd75a25fb56bd2a492
2018-08-03 08:35:01 -05:00