Merge "Add variable/env var for extra venv build deps and their binaries"

This commit is contained in:
Zuul
2026-03-04 14:17:26 +00:00
committed by Gerrit Code Review
2 changed files with 8 additions and 2 deletions

View File

@@ -75,6 +75,9 @@ venv_build_requirements:
- setuptools
- wheel
# Additional build venv dependencies
venv_build_requirements_extra: []
# A list of constraints to be applied when building
# or installing python packages.
venv_build_constraints: []

View File

@@ -97,7 +97,7 @@
- name: Upgrade the wheel build virtualenv pip/setuptools/wheel to the versions we want
ansible.builtin.pip:
name: "{{ ['pip'] + venv_build_requirements }}"
name: "{{ ['pip'] + venv_build_requirements + venv_build_requirements_extra }}"
state: "{{ venv_pip_package_state }}"
virtualenv: "{{ venv_build_host_venv_path }}"
virtualenv_command: "{{ venv_python_executable }} -m venv"
@@ -139,7 +139,10 @@
{{ venv_default_pip_build_args }}
{{ venv_pip_build_args }}
{{ venv_wheels_rebuild | ternary('--no-cache-dir', '') }}
environment: "{{ venv_pip_build_env }}"
environment: "{{ venv_pip_build_env | combine(_venv_pip_build_env_path) }}"
vars:
_venv_pip_build_env_path:
PATH: "{{ venv_build_host_venv_path }}/bin:{{ ansible_facts['env']['PATH'] }}"
register: _build_python_wheels
until: _build_python_wheels is success
retries: 5