library/roles/python-env: Install missing dev packages.

This commit is contained in:
Andrea Dell'Amico 2017-02-01 20:02:30 +01:00
parent 281e46ae7f
commit b74d457663
2 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,10 @@ py_env_get_pip_url: https://bootstrap.pypa.io/get-pip.py
py_env_basic_pkgs:
- python-pip
py_env_pip_dev_packages:
- libpython-dev
- libssl-dev
py_env_pip_fix_ssl_warnings:
- pyOpenSSL
- cryptography

View File

@ -41,6 +41,13 @@
shell: /usr/local/bin/python-pip-fixer
when: ( python_pip_fixer | changed )
- name: Install the python dev headers
apt: pkg={{ item }} state=present
with_items: '{{ py_env_pip_dev_packages }}'
- name: Install the latest six python package
pip: name=six state=latest
- name: Fix the ssl warnings installing some ssl libraries
pip: name={{ item }}
with_items: '{{ py_env_pip_fix_ssl_warnings | default ([]) }}'