Skip to content

Commit 2d5197d

Browse files
authored
Use rpm installed python-setuptools (#3830)
Using --ignore-installed with pip causes it to ignore the fact that setuptools has already been installed by rpm. This results in the newest version of setuptools (50.0.0) to be pulled in. Setuptools 50 includes a backwards incompatible change to the way that non-binary installs happen, which breaks the installation of ruamel.yaml.clib on architectures that must install from source because there is not a built wheel.
1 parent c2dbf1e commit 2d5197d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/scaffold/ansible/dockerfilehybrid.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ ENV OPERATOR=/usr/local/bin/ansible-operator \
6767
RUN yum clean all && rm -rf /var/cache/yum/* \
6868
&& yum -y update \
6969
&& yum install -y libffi-devel openssl-devel python36-devel gcc python3-pip python3-setuptools \
70-
&& pip3 install --no-cache-dir --ignore-installed ipaddress \
70+
&& pip3 install --no-cache-dir \
71+
ipaddress \
7172
ansible-runner==1.3.4 \
7273
ansible-runner-http==1.0.0 \
7374
openshift~=0.10.0 \

0 commit comments

Comments
 (0)