Ensure distro packages are present for utility wheel build
The python packages installed into the utility container require gcc and the python development packages to be present in order to build the wheels. Change-Id: I3a99bfb3fec9f47d407ec6f6555094836aedb785
This commit is contained in:
parent
5a6a74def7
commit
abf9780057
@ -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
|
||||
|
@ -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 }}"
|
||||
|
Loading…
Reference in New Issue
Block a user