]> git.phdru.name Git - ansible.git/blobdiff - playbooks/roles/python-packages/tasks/main.yml
Feat(python-packages): Install `auditwheel`
[ansible.git] / playbooks / roles / python-packages / tasks / main.yml
index 32edce791ed3d0e69dbac627c7c692c063dca015..a5449aa21809106fed0a9d3d7f7f68448d781ad0 100644 (file)
@@ -5,7 +5,8 @@
     autoremove: yes
     cache_valid_time: 3600
     install_recommends: no
-    name: ['python', 'python2.7', 'python3', 'python-pip', 'python3-pip',
+    name: ['patchelf', # for auditwheel
+           'python', 'python2.7', 'python3', 'python-pip', 'python3-pip',
            'python-setuptools', 'python3-setuptools',
            'python-gdbm', 'python-openssl', 'python3-openssl',
           ]
 
 - name: Upgrade Python packages
   become: true
-  shell: 'umask 022; exec {{ item }} -m pip install --upgrade
-      "pip < 19.1" setuptools tox virtualenv virtualenvwrapper "wheel < 0.31.1"
+  shell: 'umask 022; exec {{ item }} -m pip install --compile --upgrade
+      "pip<19.1" setuptools tox virtualenv virtualenvwrapper
       flake8 sphinx twine'
   when: python.changed
   loop: ['python3', 'python2']
+
+- name: Install wheel for Python2
+  become: true
+  shell: 'umask 022; exec python2 -m pip install --compile --upgrade
+      "wheel==0.31.1"'
+  when: python.changed
+
+- name: Install wheel and auditwheel for Python3
+  become: true
+  shell: 'umask 022; exec python3 -m pip install --compile --upgrade
+      "wheel==0.34.1" "auditwheel==3.1.0"'
+  when: python.changed