Skip to content

Commit 3316741

Browse files
committed
feat: Drop py3.7 from build script as we stopped publishing it a while ago
1 parent 7334375 commit 3316741

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

scripts/build_layers.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
# Builds datadog-lambda-python layers for Lambda functions
99

10-
# Usage: PYTHON_VERSION=3.7 ./build_layers.sh
10+
# Usage: PYTHON_VERSION=3.11 ./build_layers.sh
1111
# If PYTHON_VERSION is not specified, all versions will be built.
1212

1313
set -e
1414

1515
LAYER_DIR=".layers"
1616
LAYER_FILES_PREFIX="datadog_lambda_py"
17-
AVAILABLE_PYTHON_VERSIONS=("3.7" "3.8" "3.9" "3.10" "3.11")
17+
AVAILABLE_PYTHON_VERSIONS=("3.8" "3.9" "3.10" "3.11")
1818

1919
# Determine which Python versions to build layers for
2020
if [ -z "$PYTHON_VERSION" ]; then
@@ -68,10 +68,8 @@ mkdir $LAYER_DIR
6868

6969
for python_version in "${PYTHON_VERSIONS[@]}"
7070
do
71-
if [ "$python_version" != "3.7" ]; then
72-
echo "Building layer for Python ${python_version} arch=arm64"
73-
docker_build_zip ${python_version} $LAYER_DIR/${LAYER_FILES_PREFIX}-arm64-${python_version}.zip arm64
74-
fi
71+
echo "Building layer for Python ${python_version} arch=arm64"
72+
docker_build_zip ${python_version} $LAYER_DIR/${LAYER_FILES_PREFIX}-arm64-${python_version}.zip arm64
7573
echo "Building layer for Python ${python_version} arch=amd64"
7674
docker_build_zip ${python_version} $LAYER_DIR/${LAYER_FILES_PREFIX}-amd64-${python_version}.zip amd64
7775
done

0 commit comments

Comments
 (0)