Install py3-dev when not building wheels

When we're in CI and not building wheels, we might appear missing
py3-dev inside utility container, which is required for netifaces. So we
add it as `tempest_devel_distro_packages` which will get package
installed on the required target.

Change-Id: Ie8e04a1635a32e368ec3906082f7773dcefd30d1
Closes-Bug: 1925331
(cherry picked from commit a12a662114)
This commit is contained in:
Dmitriy Rabotyagov 2021-06-02 10:59:31 +03:00 committed by Jonathan Heathcote
parent d938d85547
commit c81740773d
4 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,7 @@
venv_python_executable: "{{ tempest_venv_python_executable }}"
venv_build_constraints: "{{ tempest_plugin_constraints + tempest_git_constraints }}"
venv_install_destination_path: "{{ tempest_venv_bin | dirname }}"
venv_build_distro_package_list: "{{ tempest_devel_distro_packages }}"
venv_pip_install_args: "{{ tempest_pip_install_args }}"
venv_wheel_build_enable: "{{ venv_build_host != inventory_hostname }}"
venv_pip_packages: "{{ tempest_pip_packages + tempest_pip_plugins }}"

View File

@ -23,6 +23,9 @@ tempest_distro_packages:
- libxslt1.1 # required by the python module unittest2
- build-essential # required to build tempest plugins (TODO) remove this when repo server can satisfy the tempest plugin requirements
tempest_devel_distro_packages:
- python3-dev # required for netifaces module for stackviz
tempest_service_distro_packages:
- tempest
- python3-junitxml

View File

@ -25,6 +25,9 @@ tempest_service_distro_packages:
- python-subunit
- subunit-filters
tempest_devel_distro_packages:
- python3-devel # required for netifaces module for stackviz
tempest_plugin_distro_packages:
- "{{ (tempest_service_available_aodh | bool) | ternary('python-telemetry-tests-tempest', '') }}"
- "{{ (tempest_service_available_barbican | bool) | ternary('python-barbican-tests-tempest', '') }}"

View File

@ -32,6 +32,9 @@ tempest_service_distro_packages:
- python3-subunit
- subunit-filters
tempest_devel_distro_packages:
- python3-devel # required for netifaces module for stackviz
tempest_plugin_distro_packages:
- "{{ (tempest_service_available_aodh | bool) | ternary('python3-telemetry-tests-tempest', '') }}"
- "{{ (tempest_service_available_barbican | bool) | ternary('python3-barbican-tests-tempest', '') }}"