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: 1942912
Change-Id: I3ba746d36983ee3f24bf1d4089be71bf01f8066a
Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
(cherry picked from commit 699a7d4207
)
This commit is contained in:
parent
3ea0fbe527
commit
205781e766
|
@ -14,6 +14,11 @@ RUN set -ex ;\
|
||||||
wget openldap-devel mariadb mariadb-devel \
|
wget openldap-devel mariadb mariadb-devel \
|
||||||
libvirt libvirt-devel liberasurecode-devel nss-devel \
|
libvirt libvirt-devel liberasurecode-devel nss-devel \
|
||||||
systemd-devel postgresql-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
|
# 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 setuptools==45.3 ;\
|
||||||
python3 -m pip install --user --upgrade wheel
|
python3 -m pip install --user --upgrade wheel
|
||||||
|
|
Loading…
Reference in New Issue