Use separate venv for bindep
Because we want to use bindep to manage our build dependencies for ansible, we need to first create a virtualenv with only bindep, so we can add the missing packages needed to build wheels for ansible. This also adds ssl development headers, which were missing. Remove bindep from requirements.txt, tox.ini includes it for bindep environment. Change-Id: I0e15a1fd97b0585c37a11044c7ad22985526cadb Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
7670da1f02
commit
714f03abf0
|
@ -5,6 +5,8 @@ dbus
|
|||
libffi-devel [platform:rpm]
|
||||
libffi-dev [platform:dpkg]
|
||||
libselinux-python [platform:rpm]
|
||||
libssl-dev [platform:dpkg]
|
||||
openssl-devel [platform:rpm]
|
||||
python2-dnf [platform:fedora]
|
||||
python3-devel [platform:rpm]
|
||||
python3-dev [platform:dpkg]
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
ansible>=2.4.0
|
||||
bindep
|
||||
netaddr
|
||||
|
|
|
@ -7,16 +7,21 @@
|
|||
regexp: ^extra-index-url
|
||||
state: absent
|
||||
|
||||
- name: Bootstrap tox environment
|
||||
- name: Bootstrap bindep environment
|
||||
args:
|
||||
chdir: "{{ windmill_src_dir }}"
|
||||
command: tox -evenv --notest
|
||||
command: tox -ebindep --notest
|
||||
|
||||
- name: Install bindep dependendies
|
||||
args:
|
||||
chdir: "{{ windmill_src_dir }}"
|
||||
executable: /bin/bash
|
||||
shell: source .tox/venv/bin/activate; ./tools/install_bindep.sh
|
||||
shell: source .tox/bindep/bin/activate; ./tools/install_bindep.sh
|
||||
|
||||
- name: Bootstrap tox environment
|
||||
args:
|
||||
chdir: "{{ windmill_src_dir }}"
|
||||
command: tox -evenv --notest
|
||||
|
||||
- name: Install ansible roles via galaxy
|
||||
args:
|
||||
|
|
Loading…
Reference in New Issue