zuul-jobs/roles/ensure-python
jgilaber 1f3920f6eb Add patch to list of build dependencies
This commit adds the patch package to the list of python build
dependencies for pyenv. This is not always necessary, but some python
versions (for example 3.7.12) require a patch to be applied before
installing and the process fails if the patch package is not installed.

Change-Id: I605fc1c9255e98692a6a901cfc509b7fdb873ae1
2022-02-17 10:16:25 +01:00
..
2022-01-18 16:00:22 +01:00
2022-01-18 16:00:22 +01:00

Ensure specified python interpreter and development files are installed

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.