Skip to content

Commit 02e1566

Browse files
committed
CCM-12616: Another mesh-poll packaging tweak
1 parent ebfb170 commit 02e1566

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

lambdas/mesh-poll/package_python_lambda.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,8 @@ pip install --platform manylinux2014_x86_64 --only-binary=:all: -r target/extern
2525
# Install internal dependencies (local packages)
2626
pip install -r target/internal_requirements.txt --target ${build_dir}
2727

28-
mkdir -p "${build_dir}/mesh_poll"
29-
for item in mesh_poll/*; do
30-
basename=$(basename "$item")
31-
if [[ "$basename" != "__tests__" && "$basename" != "venv" && "$basename" != "__pycache__" ]]; then
32-
cp -r "$item" "${build_dir}/mesh_poll/"
33-
fi
34-
done
28+
# Bundle application code
29+
pip install . --no-deps --target ${build_dir}
3530

3631
# Construct the build artefact
3732
cd ${build_dir} && zip -r "${dist_dir}/${VERSIONED_ZIP_NAME}" .

lambdas/mesh-poll/setup.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from setuptools import setup, find_packages
2+
3+
setup(
4+
name="mesh-poll",
5+
version="0.1.0",
6+
packages=find_packages(),
7+
)

0 commit comments

Comments
 (0)