From b74d45766393957450bea0fa98a83058db23d4b7 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 1 Feb 2017 20:02:30 +0100 Subject: [PATCH] library/roles/python-env: Install missing dev packages. --- python-env/defaults/main.yml | 4 ++++ python-env/tasks/main.yml | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/python-env/defaults/main.yml b/python-env/defaults/main.yml index 590f3c10..bac388e4 100644 --- a/python-env/defaults/main.yml +++ b/python-env/defaults/main.yml @@ -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 diff --git a/python-env/tasks/main.yml b/python-env/tasks/main.yml index 5cf63996..96eff0d9 100644 --- a/python-env/tasks/main.yml +++ b/python-env/tasks/main.yml @@ -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 ([]) }}'