library/roles/python-env: Fix the python pip setup. Again.

This commit is contained in:
Andrea Dell'Amico 2017-02-07 23:12:39 +01:00
parent 468d033b5d
commit 5dc29f6628
2 changed files with 5 additions and 1 deletions

View File

@ -11,6 +11,7 @@ py_env_basic_pkgs:
py_env_pip_dev_packages:
- libpython-dev
- libssl-dev
- libffi-dev
py_env_pip_fix_ssl_warnings:
- pyOpenSSL

View File

@ -41,13 +41,16 @@
shell: /usr/local/bin/python-pip-fixer
when: ( python_pip_fixer | changed )
- name: Install the python dev headers
- name: Install the python dev headers and other dev requirements
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: Install setuptools version 33.1.1
pip: name=setuptools version=33.1.1 state=present
- name: Fix the ssl warnings installing some ssl libraries
pip: name={{ item }}
with_items: '{{ py_env_pip_fix_ssl_warnings | default ([]) }}'