Skip to content

Commit 6f5cddc

Browse files
authored
change: pin in setuptools in py2 containers (aws#87)
* To avoid using unsupported py2 setuptools
1 parent 2a21849 commit 6f5cddc

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

docker/1.4.1/py2/Dockerfile.eia

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ RUN pip install --no-cache-dir \
4848
https://s3.amazonaws.com/amazonei-apachemxnet/amazonei_mxnet-1.4.1-py2.py3-none-manylinux1_x86_64.whl \
4949
mxnet-model-server==$MMS_VERSION \
5050
keras-mxnet==2.2.4.1 \
51+
# setuptools<45.0.0 because support for py2 stops with 45.0.0
52+
# https://github.com/pypa/setuptools/blob/master/CHANGES.rst#v4500
53+
"setuptools<45.0.0" \
5154
onnx==1.4.1 \
5255
# use sagemaker-inference version comaptible with MMS_VERSION=1.0.5
5356
sagemaker-inference==1.1.0 \

docker/1.6.0/py2/Dockerfile.cpu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ COPY sagemaker_mxnet_serving_container.tar.gz /sagemaker_mxnet_serving_container
5252

5353
RUN ${PIP} install --no-cache-dir \
5454
${MX_URL} \
55+
# setuptools<45.0.0 because support for py2 stops with 45.0.0
56+
# https://github.com/pypa/setuptools/blob/master/CHANGES.rst#v4500
57+
"setuptools<45.0.0" \
5558
mxnet-model-server==$MMS_VERSION \
5659
keras-mxnet==2.2.4.1 \
5760
numpy==1.16.5 \

docker/1.6.0/py2/Dockerfile.gpu

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ COPY sagemaker_mxnet_serving_container.tar.gz /sagemaker_mxnet_serving_container
4949

5050
RUN ${PIP} install --no-cache-dir \
5151
${MX_URL} \
52+
# setuptools<45.0.0 because support for py2 stops with 45.0.0
53+
# https://github.com/pypa/setuptools/blob/master/CHANGES.rst#v4500
54+
"setuptools<45.0.0" \
5255
mxnet-model-server==$MMS_VERSION \
5356
keras-mxnet==2.2.4.1 \
5457
numpy==1.16.5 \

0 commit comments

Comments
 (0)