Make sure wheel is installed for python releases

We need to rework this whole thing, becuase we need to install
wheel into a virtualenv so that we can do it without root. But
this should get us by until we can do that.

Change-Id: I2816a9c76a049f8986839c17c641d6cad541833d
This commit is contained in:
Monty Taylor 2020-06-16 14:20:25 -05:00
parent 4a9b956727
commit fe4ce563f2
1 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,13 @@
- name: Check for wheel
command: "{{ release_python }} -m wheel"
failed_when: false
register: wheel_exists
- name: Install wheel
command: "{{ release_python }} -m pip install wheel"
become: yes
when: wheel_exists.rc != 0
- name: Build a tarball and wheel
command: "{{ release_python }} setup.py sdist bdist_wheel {{ bdist_wheel_xargs }}"
args: