From 21f53396b78a3a54afd6e7fbcfb3b9bfcdc3be07 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Mon, 17 Sep 2018 19:52:07 +1000 Subject: [PATCH] Prevent wheel builds using the existing mirror I think we have a situation where a wheel build has somehow put a corrupt wheel into our mirrors, but the next run seems to grab the corrupt wheel from the mirror again ... Remove the wheel mirror from the pip configuration before starting the build so we're actually building directly from upstream, which is what is intended. Change-Id: Icb590e805d0d29130bff99335590d1d0f646e4e4 --- roles/build-wheels/tasks/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/build-wheels/tasks/main.yaml b/roles/build-wheels/tasks/main.yaml index 95043aaf39..94fd1460aa 100644 --- a/roles/build-wheels/tasks/main.yaml +++ b/roles/build-wheels/tasks/main.yaml @@ -6,5 +6,11 @@ state: directory become: yes +- name: Prevent using existing wheel mirror + lineinfile: + path: /etc/pip.conf + state: absent + regexp: '^extra-index-url.*$' + - name: Build the wheel mirror script: wheel-build.sh {{ wheel_dir }} {{ wheel_python }}