diff --git a/Dockerfile b/Dockerfile index a6a91b4b..1e3afacb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,8 @@ RUN mkdir -p /build/python/lib/$runtime/site-packages WORKDIR /build # AL2 SAM images (Python <= 3.11) ship GCC 7, which is too old to build ddtrace. -# AL2023 SAM images already include GCC, find, and strip. The Lambda Python 3.15 -# preview image does not, so install that toolchain with dnf. +# AL2023 SAM images already include GCC, find, and strip. Lambda preview images +# do not, so install that toolchain with dnf when those tools are missing. RUN set -eux; \ if command -v yum >/dev/null 2>&1; then \ yum -y install git gcc10 gcc10-c++; \ diff --git a/scripts/build_layers.sh b/scripts/build_layers.sh index a6be62ff..a4c7662e 100755 --- a/scripts/build_layers.sh +++ b/scripts/build_layers.sh @@ -35,11 +35,11 @@ set -e LAYER_DIR=".layers" LAYER_FILES_PREFIX="datadog_lambda_py" -AVAILABLE_PYTHON_VERSIONS=("3.8" "3.9" "3.10" "3.11" "3.12" "3.13" "3.14") +AVAILABLE_PYTHON_VERSIONS=("3.8" "3.9" "3.10" "3.11" "3.12" "3.13" "3.14" "3.15") # Preview runtimes. AWS has not published a SAM build image for these, so the # Lambda preview base image is used instead. The Dockerfile installs the -# compiler toolchain that image is missing. -PREVIEW_PYTHON_VERSIONS=("3.15") +# compiler toolchain that image is missing. +PREVIEW_PYTHON_VERSIONS=() ALL_PYTHON_VERSIONS=("${AVAILABLE_PYTHON_VERSIONS[@]}" "${PREVIEW_PYTHON_VERSIONS[@]}") AVAILABLE_ARCHS=("arm64" "amd64")