1 - name: Install Python and packages (Debian)
8 name: ['patchelf', # for auditwheel
9 'python', 'python2.7', 'python3', 'python-pip', 'python3-pip',
10 'python-setuptools', 'python3-setuptools',
11 'python-gdbm', 'python-openssl', 'python3-openssl',
17 when: ansible_facts.os_family == 'Debian'
19 - name: Install Python and packages (RedHat)
22 name: ['python2', 'python3', 'python2-pip', 'python3-pip',
23 'python2-setuptools', 'python3-setuptools',
24 'python2-pyOpenSSL', 'python3-pyOpenSSL',
29 when: ansible_facts.os_family == 'RedHat'
31 - name: Upgrade Python packages
33 shell: 'umask 022; exec {{ item }} -m pip install --compile --upgrade
34 "pip<19.1" setuptools tox virtualenv virtualenvwrapper
37 loop: ['python3', 'python2']
39 - name: Install wheel for Python2
41 shell: 'umask 022; exec python2 -m pip install --compile --upgrade
45 - name: Install wheel and auditwheel for Python3
47 shell: 'umask 022; exec python3 -m pip install --compile --upgrade
48 "wheel==0.34.1" "auditwheel==3.1.0"'