From a3be6362b0c906a5f718f35e2f34ca6d417ef35a Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Wed, 13 Nov 2024 10:03:56 -0800 Subject: [PATCH] Install lambda/reqs.txt with each pybin --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 433701bc..0b6b663a 100644 --- a/Makefile +++ b/Makefile @@ -192,7 +192,7 @@ install-lambda-modules: @echo -e "Creating target directory ${target_dir} for AWS Lambda layer artifacts." mkdir -p ${target_dir}/python @echo -e "Install upstream dependencies to include in layer" - @/opt/python/cp38-cp38/bin/pip3.8 install -t ${target_dir}/python -r lambda/requirements.txt + @set -e; for PYBIN in 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" @set -e; for PYBIN in cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312; do /opt/python/$${PYBIN}/bin/pip install -t ${target_dir}/$${PYBIN} -r lambda/requirements-so.txt; done @set -e; for PYBIN in cp39-cp39 cp310-cp310 cp311-cp311 cp312-cp312; do cp ${target_dir}/$${PYBIN}/charset_normalizer/*.so ${target_dir}/python/charset_normalizer/ && cp ${target_dir}/$${PYBIN}/grpc/_cython/*.so ${target_dir}/python/grpc/_cython/ && cp ${target_dir}/$${PYBIN}/wrapt/*.so ${target_dir}/python/wrapt/; done