From 57bb14f971c2fe80c1af22ecb318a7b9d3c3c8af Mon Sep 17 00:00:00 2001 From: Tomaz Muraus Date: Sun, 14 Feb 2021 20:42:41 +0100 Subject: [PATCH] Pin pip to 20.0.2 which is the same version used in StackStorm/st2 repo. Same packages such as orjson use manylinux2014 wheel format which is only supported by pip >= 19.3. If we tray to install it using older version of pip, it will try to build it from scratch and fail. --- packagingbuild/bionic/Dockerfile | 2 +- packagingbuild/centos7/Dockerfile | 2 +- packagingbuild/centos8/Dockerfile | 2 +- packagingbuild/xenial/Dockerfile | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packagingbuild/bionic/Dockerfile b/packagingbuild/bionic/Dockerfile index d61995d..2686b33 100644 --- a/packagingbuild/bionic/Dockerfile +++ b/packagingbuild/bionic/Dockerfile @@ -49,7 +49,7 @@ RUN apt-get update && \ devscripts debhelper dh-make libldap2-dev libsasl2-dev && apt-get clean # Install fresh pip and co -RUN curl https://bootstrap.pypa.io/get-pip.py | python3 - virtualenv==16.6.0 pip==19.1.1 wheel setuptools cryptography; \ +RUN curl https://bootstrap.pypa.io/get-pip.py | python3 - virtualenv==16.6.0 pip==20.0.2 wheel setuptools cryptography; \ pip3 install --upgrade requests[security] && rm -rf /root/.cache # We use our dh-virtualenv version, since it fixes shebangd lines rewrites diff --git a/packagingbuild/centos7/Dockerfile b/packagingbuild/centos7/Dockerfile index 0af275e..d4f067d 100644 --- a/packagingbuild/centos7/Dockerfile +++ b/packagingbuild/centos7/Dockerfile @@ -79,7 +79,7 @@ RUN yum -y install nc net-tools RUN yum -y install rpmdevtools epel-release # Install python3 RUN yum -y install python3 python3-devel python3-virtualenv && \ - pip3 install virtualenv==16.6.0 pip==19.1.1 wheel setuptools + pip3 install virtualenv==16.6.0 pip==20.0.2 wheel setuptools RUN pip3 install --upgrade requests[security] venvctrl && rm -rf /root/.cache VOLUME ["/home/busybee/build"] diff --git a/packagingbuild/centos8/Dockerfile b/packagingbuild/centos8/Dockerfile index d42ebd5..d0c8d45 100644 --- a/packagingbuild/centos8/Dockerfile +++ b/packagingbuild/centos8/Dockerfile @@ -87,7 +87,7 @@ RUN yum -y install nc net-tools # Install development tools and python3 for EL8 RUN yum -y install python3 python3-devel rpmdevtools python3-virtualenv && \ - pip3 install virtualenv==16.6.0 pip==19.1.1 wheel setuptools + pip3 install virtualenv==16.6.0 pip==20.0.2 wheel setuptools RUN pip3 install requests[security] venvctrl --upgrade && rm -rf /root/.cache diff --git a/packagingbuild/xenial/Dockerfile b/packagingbuild/xenial/Dockerfile index da7b596..ac157c9 100644 --- a/packagingbuild/xenial/Dockerfile +++ b/packagingbuild/xenial/Dockerfile @@ -50,7 +50,7 @@ RUN apt-get update && \ devscripts debhelper dh-make libldap2-dev libsasl2-dev && apt-get clean # Install fresh pip and co -RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6 - virtualenv==16.6.0 pip==19.1.1 wheel setuptools; \ +RUN curl https://bootstrap.pypa.io/get-pip.py | python3.6 - virtualenv==16.6.0 pip==20.0.2 wheel setuptools; \ pip3.6 install --upgrade requests[security] && rm -rf /root/.cache # We use our dh-virtualenv version, since it fixes shebangd lines rewrites