Ansible role to manage the building of python venvs
Go to file
Jesse Pretorius c54aa8117e Add default distro packages for wheel builds
There are some packages which absolutely must be there
for all wheel builds, or for installing without wheels.
Without them, pip is totally unable to compile the
package due to missing headers or tooling.

This patch adds a default, minimal, set of compilers
and python headers.

Rather than use include_vars, with_first_found as we
do in most other roles, we use vars/main and a dict
based on ansible_os_family. The role is often included
by other roles, and we'd rather not risk the search
path being incorrect (there are constant bugs related
to this in ansible). Using this mechanism takes away
the need for an include_vars task and avoids any pathing
issues.

Change-Id: I4ef11e47e4d3fe5adc65e9888e660a5a121d205b
2018-10-31 10:35:20 +00:00
defaults Add default distro packages for wheel builds 2018-10-31 10:35:20 +00:00
doc Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
handlers Revise the role to properly cater to use-cases 2018-05-04 18:03:59 +01:00
meta Add Bionic testing 2018-07-30 13:10:31 +00:00
releasenotes Update reno for stable/rocky 2018-08-10 16:44:00 +00:00
tasks Add default distro packages for wheel builds 2018-10-31 10:35:20 +00:00
tests Set container_name as host_var in test inventory 2018-10-20 15:28:29 -07:00
vars Add default distro packages for wheel builds 2018-10-31 10:35:20 +00:00
zuul.d switch documentation job to new PTI 2018-08-21 13:21:41 +00:00
.gitignore Updated from OpenStack Ansible Tests 2018-10-02 14:56:55 +00:00
.gitreview Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
LICENSE Initial commit 2018-03-09 17:50:21 +00:00
README.rst Use the virtualenv's pip to build the wheels 2018-08-19 20:15:37 +01:00
Vagrantfile Updated from OpenStack Ansible Tests 2018-09-28 06:23:51 +00:00
bindep.txt Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
run_tests.sh Updated from OpenStack Ansible Tests 2018-09-29 04:57:35 +00:00
setup.cfg Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
setup.py Add CI/docs/releasenotes scaffolding and basic test 2018-03-24 22:42:06 +00:00
tox.ini fix tox python3 overrides 2018-09-26 18:41:31 -04:00

README.rst

Team and repository tags

image

OpenStack-Ansible python_venv_build

This Ansible role prepares a python venv for use in OpenStack-Ansible.

The role requires the following to be present prior to execution:

  • virtualenv >= 1.10 (to support using the never-download option)
  • pip >= 7.1 (to support using the constraints option) in the virtualenv once it has been created.

Use-cases

This role is built to cater to the following use-cases:

# Execute a build against a build host, then serve the venvs from a web

server.

# Execute a build against the first host in a group, then serving the

venvs from the deployment host.

References

Documentation for the project can be found at:

https://docs.openstack.org/openstack-ansible-python_venv_build/latest/

The project home is at:

http://launchpad.net/openstack-ansible

Release notes for the project can be found at:

https://docs.openstack.org/releasenotes/ansible-role-python_venv_build/