Merge "Ensure distro packages are present for utility wheel build"

This commit is contained in:
Zuul 2020-07-22 13:36:43 +00:00 committed by Gerrit Code Review
commit 8ba44b0f3a
2 changed files with 12 additions and 0 deletions

View File

@ -31,6 +31,17 @@ utility_distro_packages:
- git
- bash-completion
_utility_devel_distro_packages_debian:
- gcc
- python3-dev
_utility_devel_distro_packages_redhat:
- gcc
- "{{ ansible_distribution_major_version is version('8', '<') | ternary('python-devel', 'python36-devel') }}"
# Distribution packages needed for the utility pip package wheel build
utility_devel_distro_packages: "{{ (ansible_os_family == 'RedHat') | ternary(_utility_devel_distro_packages_redhat, _utility_devel_distro_packages_debian) }}"
# Packages installed into the utility container for distro installs
# NOTE(jrosser) this can be simplified when all supported
# distros use python3

View File

@ -131,6 +131,7 @@
vars:
venv_python_executable: "{{ utility_venv_python_executable | default(openstack_venv_python_executable) }}"
venv_install_destination_path: "{{ utility_venv_bin | dirname }}"
venv_build_distro_package_list: "{{ utility_devel_distro_packages }}"
venv_pip_install_args: "{{ pip_install_options | default('') }}"
venv_build_constraints:
- "--constraint {{ utility_upper_constraints_url }}"