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:
Paul Belanger 2018-05-11 13:28:40 -04:00
parent 7670da1f02
commit 714f03abf0
No known key found for this signature in database
GPG Key ID: 611A80832067AF38
3 changed files with 10 additions and 4 deletions

View File

@ -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]

View File

@ -1,3 +1,2 @@
ansible>=2.4.0
bindep
netaddr

View File

@ -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: