Add a failure message when no build targets are present
At the moment if no appropriate build target is present role fails with quite unclear message. This patch aims to provide human-readable failure message when it's not possible to select build target, but wheels build is enabled. Change-Id: Ice35e3e4a14ee74b6ff40bd2385550f2da162878
This commit is contained in:
parent
e43dcdbf6a
commit
a3ea0c74ab
|
@ -58,6 +58,21 @@
|
|||
- ansible_play_batch | length > 2
|
||||
- not (venv_wheel_build_skip_check | default(False))
|
||||
|
||||
- name: Fail if no wheels build host is available
|
||||
fail:
|
||||
msg: >-
|
||||
You are trying to build wheels for the distribution or architecture
|
||||
that you don't have build host for.
|
||||
Please, ensure that you have at least 1 host in 'repo_all' group
|
||||
with the following distribution: {{ _venv_build_dist_arch | replace('-', ' ') }}
|
||||
Otherwise, consider adding matching OS to the group or set
|
||||
`venv_wheel_build_enable: False`. Note, that you can run
|
||||
only in a serial manner when wheel build is disabled.
|
||||
Found venv_build_targets: {{ venv_build_targets }}
|
||||
when:
|
||||
- venv_wheel_build_enable | bool
|
||||
- _venv_build_dist_arch not in venv_build_targets
|
||||
|
||||
- include_tasks: "python_venv_wheel_build.yml"
|
||||
args:
|
||||
apply:
|
||||
|
|
Loading…
Reference in New Issue