File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ phases:
55
55
-t "${IMAGE_TAG}" \
56
56
--build-arg RUNTIME_VERSION="${RUNTIME_VERSION}" \
57
57
--build-arg DISTRO_VERSION="${DISTRO_VERSION}" \
58
- --build-arg ARCHITECTURE="${ARCHITECTURE}" --load
58
+ --build-arg ARCHITECTURE="${ARCHITECTURE}" \
59
+ --load
59
60
build :
60
61
commands :
61
62
- set -x
Original file line number Diff line number Diff line change @@ -80,6 +80,11 @@ RUN mkdir -p ${RIC_BUILD_DIR}
80
80
# Copy function code and Runtime Interface Client .tgz
81
81
WORKDIR ${RIC_BUILD_DIR}
82
82
COPY . .
83
+
84
+ # distutils no longer available in python3.12 and later
85
+ # https://docs.python.org/3/whatsnew/3.12.html
86
+ # https://peps.python.org/pep-0632/
87
+ RUN if [ $(cut -d '.' -f 2 <<< ${RUNTIME_VERSION}) -ge 12 ]; then pip3 install setuptools; fi
83
88
RUN make init build test && \
84
89
mv ./dist/awslambdaric-*.tar.gz ./dist/awslambdaric-test.tar.gz
85
90
You can’t perform that action at this time.
0 commit comments