From 6b1898a16a9a4da93f11cb136c24fe6cd778b2d8 Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Wed, 13 Nov 2024 11:39:40 -0800 Subject: [PATCH] Extra pip install setuptools at make aws-lambda --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 8b565227..438f0e28 100644 --- a/Makefile +++ b/Makefile @@ -191,6 +191,8 @@ install-lambda-modules: rm -rf ${target_dir} @echo -e "Creating target directory ${target_dir} for AWS Lambda layer artifacts." mkdir -p ${target_dir}/python + @echo -e "Install setuptools" + @set -e; for PYBIN in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312; do /opt/python/$${PYBIN}/bin/pip install setuptools; done @echo -e "Install upstream dependencies to include in layer" @set -e; for PYBIN in cp38-cp38 cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312; do /opt/python/$${PYBIN}/bin/pip install -t ${target_dir}/python -r lambda/requirements.txt; done @echo -e "Install other version-specific .so files for deps"