Default zuul_pip_executable to pip3

Moving forward, we'll only support zuul under python3.

Change-Id: I3fdabe07e6aceff68442dfb295fb3c24d6e05b58
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
Paul Belanger 2018-04-13 12:21:48 -04:00
parent 6cb235189a
commit cdba41e540
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
2 changed files with 10 additions and 0 deletions

View File

@ -18,6 +18,8 @@ so that changes are only merged if they pass tests.
Requirements
------------
* pip3 to be installed if using zuul_install_method: (git|pip)
See `bindep.txt` for role dependencies.
Packages

View File

@ -25,4 +25,12 @@
with_items: "{{ zuul_build_depends }}"
when: zuul_install_method == 'git'
- name: Define zuul_pip_executable if needed.
set_fact:
zuul_pip_executable: pip3
when:
- zuul_install_method == 'git' or zuul_install_method == 'pip'
- zuul_pip_virtualenv_python is not defined
- zuul_pip_executable is not defined
- include: "install/{{ zuul_install_method }}.yaml"