Skip to content

Commit 541cd50

Browse files
Python 3.15 SAM image is available (#891)
1 parent 43fa5e2 commit 541cd50

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎Dockerfile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ RUN mkdir -p /build/python/lib/$runtime/site-packages
88
WORKDIR /build
99

1010
# AL2 SAM images (Python <= 3.11) ship GCC 7, which is too old to build ddtrace.
11-
# AL2023 SAM images already include GCC, find, and strip. The Lambda Python 3.15
12-
# preview image does not, so install that toolchain with dnf.
11+
# AL2023 SAM images already include GCC, find, and strip. Lambda preview images
12+
# do not, so install that toolchain with dnf when those tools are missing.
1313
RUN set -eux; \
1414
if command -v yum >/dev/null 2>&1; then \
1515
yum -y install git gcc10 gcc10-c++; \

‎scripts/build_layers.sh‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ set -e
3535

3636
LAYER_DIR=".layers"
3737
LAYER_FILES_PREFIX="datadog_lambda_py"
38-
AVAILABLE_PYTHON_VERSIONS=("3.8" "3.9" "3.10" "3.11" "3.12" "3.13" "3.14")
38+
AVAILABLE_PYTHON_VERSIONS=("3.8" "3.9" "3.10" "3.11" "3.12" "3.13" "3.14" "3.15")
3939
# Preview runtimes. AWS has not published a SAM build image for these, so the
4040
# Lambda preview base image is used instead. The Dockerfile installs the
41-
# compiler toolchain that image is missing.
42-
PREVIEW_PYTHON_VERSIONS=("3.15")
41+
# compiler toolchain that image is missing.
42+
PREVIEW_PYTHON_VERSIONS=()
4343
ALL_PYTHON_VERSIONS=("${AVAILABLE_PYTHON_VERSIONS[@]}" "${PREVIEW_PYTHON_VERSIONS[@]}")
4444
AVAILABLE_ARCHS=("arm64" "amd64")
4545

0 commit comments

Comments
 (0)