5 Commits

Author SHA1 Message Date
Federico Ressi
94de803520 Compile Python with missing deps and shared libs
Change-Id: I99c5d518736004beed8686ff330a5c7150e3f7c6
2019-12-20 13:10:27 +01:00
Federico Ressi
72b57b7adf Use /usr/local as default python prefix
* Restructure the role to move logic out of main tasks file.
* Use /usr/local as default prefix for python commands
  as expected by DevStack
* Use 4 cores in Vagrant to compile python faster

Change-Id: I87024f4397649000d168a444ba091fef9671f8bd
2019-12-18 13:51:20 +00:00
Federico Ressi
76dd641cc5 Ensure sudo can find python3 command
Change-Id: I9b2c2459b844b2e22cd09c572874abfe8dad1ff2
2019-12-17 16:40:40 +01:00
Federico Ressi
3bfacfb9d2 Verify python and pip command works before installing them
Update python ansible role to verify commands already works
before installing new executables

Change-Id: Ie16cec211059e0548f0dfa64ad34aae9ef9757e1
2019-12-17 08:59:37 +01:00
Federico Ressi
9a76b8f9f0 Create Ansible role to install arbitrary Python version
The purpose of this is to be able to install a version
of python that is not available on target node. It
downloads source code from Python site, compiles it
using default compiler and install it.

It also installs and upgrade python packages (pip,
setuptools, etc.) and install additional ones required
by user via Pip

Change-Id: I3212d6fc1872451942aaa82e613236351f8592a3
2019-12-16 10:31:32 +01:00