From a65ac6ee91a7a13b1ccbe1ba78f31be296015e3d Mon Sep 17 00:00:00 2001 From: Fares-Abubaker Date: Sun, 14 Sep 2025 02:51:07 +0300 Subject: [PATCH 1/2] Python 3.12/3.13: remove wheel, install setuptools only --- build-image-src/Dockerfile-python312 | 5 ++--- build-image-src/Dockerfile-python313 | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/build-image-src/Dockerfile-python312 b/build-image-src/Dockerfile-python312 index 5dd2998..7e3e397 100644 --- a/build-image-src/Dockerfile-python312 +++ b/build-image-src/Dockerfile-python312 @@ -47,9 +47,8 @@ ENV PATH=$PATH:/usr/local/opt/lambda-builders/bin ENV LANG=en_US.UTF-8 -# Wheel is required by SAM CLI to build libraries like cryptography. It needs to be installed in the system -# Python for it to be picked up during `sam build` -RUN pip3 install wheel setuptools +# Install setuptools so that Python packages with build requirements can be compiled during `sam build` +RUN pip3 install setuptools COPY ATTRIBUTION.txt / diff --git a/build-image-src/Dockerfile-python313 b/build-image-src/Dockerfile-python313 index 60ec2a2..c458d72 100644 --- a/build-image-src/Dockerfile-python313 +++ b/build-image-src/Dockerfile-python313 @@ -47,9 +47,8 @@ ENV PATH=$PATH:/usr/local/opt/lambda-builders/bin ENV LANG=en_US.UTF-8 -# Wheel is required by SAM CLI to build libraries like cryptography. It needs to be installed in the system -# Python for it to be picked up during `sam build` -RUN pip3 install wheel setuptools +# Install setuptools so that Python packages with build requirements can be compiled during `sam build` +RUN pip3 install setuptools COPY ATTRIBUTION.txt / From 63fb02a6d0a0b926ea1ae1b5e01b627f1248f225 Mon Sep 17 00:00:00 2001 From: Fares-Abubaker Date: Sun, 14 Sep 2025 08:51:11 +0300 Subject: [PATCH 2/2] Python: remove wheel, install setuptools only for all Python versions --- build-image-src/Dockerfile-python310 | 5 ++--- build-image-src/Dockerfile-python311 | 5 ++--- build-image-src/Dockerfile-python38 | 5 ++--- build-image-src/Dockerfile-python39 | 5 ++--- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/build-image-src/Dockerfile-python310 b/build-image-src/Dockerfile-python310 index b78dddd..0409ae5 100644 --- a/build-image-src/Dockerfile-python310 +++ b/build-image-src/Dockerfile-python310 @@ -46,9 +46,8 @@ ENV PATH=$PATH:/usr/local/opt/lambda-builders/bin ENV LANG=en_US.UTF-8 -# Wheel is required by SAM CLI to build libraries like cryptography. It needs to be installed in the system -# Python for it to be picked up during `sam build` -RUN pip3 install wheel +# Install setuptools so that Python packages with build requirements can be compiled during `sam build` +RUN pip3 install setuptools COPY ATTRIBUTION.txt / diff --git a/build-image-src/Dockerfile-python311 b/build-image-src/Dockerfile-python311 index 7b26a6b..ff897a5 100644 --- a/build-image-src/Dockerfile-python311 +++ b/build-image-src/Dockerfile-python311 @@ -46,9 +46,8 @@ ENV PATH=$PATH:/usr/local/opt/lambda-builders/bin ENV LANG=en_US.UTF-8 -# Wheel is required by SAM CLI to build libraries like cryptography. It needs to be installed in the system -# Python for it to be picked up during `sam build` -RUN pip3 install wheel +# Install setuptools so that Python packages with build requirements can be compiled during `sam build` +RUN pip3 install setuptools COPY ATTRIBUTION.txt / diff --git a/build-image-src/Dockerfile-python38 b/build-image-src/Dockerfile-python38 index 73590bb..d373abd 100644 --- a/build-image-src/Dockerfile-python38 +++ b/build-image-src/Dockerfile-python38 @@ -46,9 +46,8 @@ ENV PATH=$PATH:/usr/local/opt/lambda-builders/bin ENV LANG=en_US.UTF-8 -# Wheel is required by SAM CLI to build libraries like cryptography. It needs to be installed in the system -# Python for it to be picked up during `sam build` -RUN pip3 install wheel +# Install setuptools so that Python packages with build requirements can be compiled during `sam build` +RUN pip3 install setuptools COPY ATTRIBUTION.txt / diff --git a/build-image-src/Dockerfile-python39 b/build-image-src/Dockerfile-python39 index 946f7be..e4fa877 100644 --- a/build-image-src/Dockerfile-python39 +++ b/build-image-src/Dockerfile-python39 @@ -46,9 +46,8 @@ ENV PATH=$PATH:/usr/local/opt/lambda-builders/bin ENV LANG=en_US.UTF-8 -# Wheel is required by SAM CLI to build libraries like cryptography. It needs to be installed in the system -# Python for it to be picked up during `sam build` -RUN pip3 install wheel +# Install setuptools so that Python packages with build requirements can be compiled during `sam build` +RUN pip3 install setuptools COPY ATTRIBUTION.txt /