Skip to content

Commit 9d94f48

Browse files
authored
Merge pull request #162 from aws/numpy
Numpy Installation Issue & ARM Dockerfile PyArrow Update
2 parents cfd95dc + dba0ae3 commit 9d94f48

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

docker/1.0-1/base/Dockerfile.cpu

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ ARG CONDA_PKG_VERSION=4.13.0
1010
ARG PYTHON_VERSION=3.8.13
1111
ARG PYARROW_VERSION=10.0.1
1212
ARG MLIO_VERSION=v0.8.0
13-
ARG NUMPY_VERSION=1.24.1
1413

1514
# Install python and other scikit-learn runtime dependencies
1615
# Dependency list from http://scikit-learn.org/stable/developers/advanced_installation.html#installing-build-dependencies
@@ -82,7 +81,6 @@ RUN echo "conda ${CONDA_PKG_VERSION}" >> /miniconda3/conda-meta/pinned && \
8281
conda install -c conda-forge python=${PYTHON_VERSION} && \
8382
conda install conda=${CONDA_PKG_VERSION} && \
8483
conda update -y conda && \
85-
conda install -c conda-forge numpy=${NUMPY_VERSION} && \
8684
conda install -c conda-forge pyarrow=${PYARROW_VERSION} && \
8785
cd /tmp && \
8886
git clone --branch ${MLIO_VERSION} https://github.com/awslabs/ml-io.git mlio && \

docker/1.0-1/base/Dockerfile_arm.cpu

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ ARG MINICONDA_VERSION=4.9.2 # Upgraded version
77
ARG CONDA_PY_VERSION=38
88
ARG CONDA_PKG_VERSION=4.10.1
99
ARG PYTHON_VERSION=3.8.13
10-
ARG PYARROW_VERSION=1.0.0
11-
ARG MLIO_VERSION=arch-agnostic
10+
ARG PYARROW_VERSION=10.0.1
11+
ARG MLIO_VERSION=0.8.0
1212

1313
# Install python and other scikit-learn runtime dependencies
1414
# Dependency list from http://scikit-learn.org/stable/developers/advanced_installation.html#installing-build-dependencies
@@ -66,6 +66,10 @@ RUN apt-get update && \
6666
rm /etc/apt/trusted.gpg.d/kitware.gpg && \
6767
rm -rf /var/lib/apt/lists/*
6868

69+
# http://ftp.us.debian.org/debian/pool/main/libf/libffi/libffi7_3.3-6_arm64.deb
70+
COPY docker/1.0-1/resources/libffi7_3.3-6_arm64.deb /tmp
71+
RUN dpkg -i /tmp/libffi7_3.3-6_arm64.deb
72+
6973
RUN cd /tmp && \
7074
curl -L --output /tmp/Miniconda3.sh https://repo.anaconda.com/miniconda/Miniconda3-py${CONDA_PY_VERSION}_${MINICONDA_VERSION}-Linux-aarch64.sh && \
7175
bash /tmp/Miniconda3.sh -bfp /miniconda3 && \

docker/1.0-1/final/Dockerfile.cpu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ RUN python -m pip install -r /requirements.txt && \
88
rm /requirements.txt
99

1010
COPY dist/sagemaker_sklearn_container-2.0-py3-none-any.whl /sagemaker_sklearn_container-2.0-py3-none-any.whl
11-
# https://github.com/googleapis/google-cloud-python/issues/6647
12-
RUN rm -rf /miniconda3/lib/python3.7/site-packages/numpy-1.19.4.dist-info && \
13-
pip install --no-cache /sagemaker_sklearn_container-2.0-py3-none-any.whl && \
11+
RUN rm /miniconda3/lib/python3.8/site-packages/**/REQUESTED && \
12+
rm /miniconda3/lib/python3.8/site-packages/**/direct_url.json
13+
RUN pip install --no-cache /sagemaker_sklearn_container-2.0-py3-none-any.whl && \
1414
rm /sagemaker_sklearn_container-2.0-py3-none-any.whl
1515

1616
ENV SAGEMAKER_TRAINING_MODULE sagemaker_sklearn_container.training:main
20.2 KB
Binary file not shown.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ MarkupSafe==2.1.1
2222
Werkzeug==0.15.6
2323
setuptools==65.5.1
2424
wheel==0.38.1
25+
numpy==1.24.1

0 commit comments

Comments
 (0)