1 - name: Install Python and packages (Debian)
8 name: ['patchelf', # for auditwheel
9 'python', 'python2.7', 'python3', "{{ python_pip_pkg }}",
10 'python3-pip', 'python-setuptools', 'python3-setuptools',
11 'python-gdbm', "{{ python_openssl_pkg }}", 'python3-openssl',
17 - python_pip_pkg: "python-pip{% if ansible_facts.distribution_major_version in ['9', '10'] %}{% elif ansible_facts.distribution_major_version == '11' %}-whl{% endif %}"
18 - python_openssl_pkg: "{% if ansible_facts.distribution_major_version in ['9', '10'] %}python-openssl{% elif ansible_facts.distribution_major_version == '11' %}python3-openssl{% endif %}"
20 when: ansible_facts.os_family == 'Debian'
22 - name: Install Python and packages (RedHat)
25 name: ['python2', 'python3', 'python2-pip', 'python3-pip',
26 'python2-setuptools', 'python3-setuptools',
27 'python2-pyOpenSSL', 'python3-pyOpenSSL',
32 when: ansible_facts.os_family == 'RedHat'
34 - name: Upgrade Python packages
36 shell: 'umask 022; exec {{ item }} -m pip install --compile --upgrade
37 "pip<19.1" setuptools tox virtualenv virtualenvwrapper
40 loop: ['python3', 'python2']
42 - name: Install wheel for Python2
44 shell: 'umask 022; exec python2 -m pip install --compile --upgrade
48 - name: Install wheel and auditwheel for Python3
50 shell: 'umask 022; exec python3 -m pip install --compile --upgrade
51 "wheel==0.34.1" "auditwheel==3.1.0"'