From 699a7d4207415fd57e40894443aff28bd86675c5 Mon Sep 17 00:00:00 2001 From: Davlet Panech Date: Fri, 27 Aug 2021 11:33:27 -0400 Subject: [PATCH] build-wheels: ignore yanked pypi.org modules 1) Pip3 9.0.3 provided by CentOS does not ignore "yanked" modules published to pypi.org. This causes the builds to download modules that are broken. Solution: use the earliest version of pip where that bug is fixed (19.2.3) 2) A number of recent versions of setuptools-scm are broken in pypi.org. Use last version known to work, 6.0.1 Closes-Bug: 1941901 Change-Id: I3ba746d36983ee3f24bf1d4089be71bf01f8066a Signed-off-by: Davlet Panech --- build-tools/build-wheels/docker/centos-dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build-tools/build-wheels/docker/centos-dockerfile b/build-tools/build-wheels/docker/centos-dockerfile index 170a71a9..11bab28e 100644 --- a/build-tools/build-wheels/docker/centos-dockerfile +++ b/build-tools/build-wheels/docker/centos-dockerfile @@ -14,6 +14,11 @@ RUN set -ex ;\ wget openldap-devel mariadb mariadb-devel \ libvirt libvirt-devel liberasurecode-devel nss-devel \ systemd-devel postgresql-devel ;\ +# pip<19.2.3 doesn't ignore yanked packages from pypi.org + python3 -m pip install pip==19.2.3 ;\ +# setuptools-scm's maintainers keep publishing and yanking new versions. +# Pin it to latest version known to work + python3 -m pip install setuptools-scm==6.0.1 ;\ # while setuptools is larger than 45.3, it no longer support "Features" in setup.py python3 -m pip install --user setuptools==45.3 ;\ python3 -m pip install --user --upgrade wheel