zuul-jobs/roles/ensure-python
Dmitriy Rabotyagov 39776cfdd9 Make sure that we pass list in loop
map returns a generator that needs to be converted to a list for
the loop.

We also don't need unique as this is iterating over a list of
directory names that must already be unique.

Change-Id: Ibd22d79be29aaa9d3a7924319c59929e665f9cbc
2020-09-28 22:45:13 +00:00
..
defaults Add support to use stow for ensure-python 2020-09-24 07:39:52 +00:00
tasks Make sure that we pass list in loop 2020-09-28 22:45:13 +00:00
vars pyenv: install libffi-dev 2020-05-09 14:03:51 -05:00
README.rst Add support to use stow for ensure-python 2020-09-24 07:39:52 +00:00

Ensure specified python interpreter and development files are installed

Note

This role is only available for Debian based platforms currently.

There are three ways to install the python interpreter:

  1. Using distribution packages: This is the default (python_use_pyenv and python_use_stow are both false``).
  2. Install using pyenv.
  3. Install using stow.

Note

You cannot use both pyenv and stow method for the same job. That means that python_use_pyenv and python_use_stow cannot be set both to True at the same time.

Role Variables

Optional version of python interpreter to install, such as 3.7.