From 5dc29f662875a17cc3c37a6658dd2bc950567410 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 7 Feb 2017 23:12:39 +0100 Subject: [PATCH] library/roles/python-env: Fix the python pip setup. Again. --- python-env/defaults/main.yml | 1 + python-env/tasks/main.yml | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/python-env/defaults/main.yml b/python-env/defaults/main.yml index bac388e4..1a0d9fe8 100644 --- a/python-env/defaults/main.yml +++ b/python-env/defaults/main.yml @@ -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 diff --git a/python-env/tasks/main.yml b/python-env/tasks/main.yml index 96eff0d9..b675ca12 100644 --- a/python-env/tasks/main.yml +++ b/python-env/tasks/main.yml @@ -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 ([]) }}'