Skip to content

Commit f804b09

Browse files
authored
Pin setuptools==57.5.0 to workaround install problem. (ibm-functions#153)
- With setuptools>=58.0.0 the installation of ibm_db package fails with `use_2to3 is invalid.`. Reason is that this feature has been removed from setuptools beginning with 58.0.0. To make the build working again setuptools is pinned to the latest version before 58.0.0. When the ibm_db package is upgraded to a newer version, the pin of setuptools ran be removed.
1 parent ee56c7e commit f804b09

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

python3.6/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ RUN apt-get update \
2222
&& rm -rf /var/lib/apt/lists/* \
2323
&& apt-cache search linux-headers-generic \
2424
# install additional python modules
25-
&& pip install --upgrade pip setuptools six && pip install --no-cache-dir -r requirements.txt \
25+
# we pin setuptools==57.5.0, reason is that ibm_db<=3.0.4 requires 'use_2to3' during install which has been
26+
# removed from setuptools starting with the 58.x.x release. The install therefore fails with:
27+
# error in ibm_db setup command: use_2to3 is invalid.
28+
# When ibm_db is upgraded to a version that does not need 'use_2to3' anymore the pin can also be removed.
29+
&& pip install --upgrade pip setuptools==57.5.0 six \
30+
&& pip install --no-cache-dir -r requirements.txt \
2631
# create action working directory
2732
&& mkdir -p /action \
2833
&& mkdir -p /actionProxy \

python3.7/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ RUN apt-get update \
1111
# We need to add some dummy entries to /etc/mysql/my.cnf to sattisfy vulnerability checking of it.
1212
&& echo "\n[mysqld]\nssl-ca=/tmp/ca.pem\nssl-cert=/tmp/server-cert.pem\nssl-key=/tmp/server-key.pem\n" >> /etc/mysql/my.cnf \
1313
# install additional python modules
14-
&& pip install --upgrade pip setuptools six && pip install --no-cache-dir -r requirements.txt \
14+
# we pin setuptools==57.5.0, reason is that ibm_db<=3.0.4 requires 'use_2to3' during install which has been
15+
# removed from setuptools starting with the 58.x.x release. The install therefore fails with:
16+
# error in ibm_db setup command: use_2to3 is invalid.
17+
# When ibm_db is upgraded to a version that does not need 'use_2to3' anymore the pin can also be removed.
18+
&& pip install --upgrade pip setuptools==57.5.0 six \
19+
&& pip install --no-cache-dir -r requirements.txt \
1520
# Show actual python version in the build output.
1621
&& echo "Actual python version is:" \
1722
&& python --version \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy