Skip to content

Commit 8a7aee4

Browse files
committed
include base geolambda files in python geolambda
1 parent bf674e7 commit 8a7aee4

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

bin/package.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# directory used for deployment
44
export DEPLOY_DIR=lambda
55

6-
echo Creating deploy package
7-
86
# make deployment directory and add lambda handler
97
mkdir -p $DEPLOY_DIR/lib
108

@@ -21,4 +19,4 @@ rsync -ax $PREFIX/share/proj $DEPLOY_DIR/share/
2119

2220
# zip up deploy package
2321
cd $DEPLOY_DIR
24-
zip -ruq --symlinks ../lambda-deploy.zip ./
22+
zip -ruq ../lambda-deploy.zip ./

python/bin/package-python.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,20 @@
33
# directory used for development
44
export DEPLOY_DIR=lambda
55

6+
# make deployment directory and add lambda handler
7+
mkdir -p $DEPLOY_DIR/lib
8+
9+
# copy libs
10+
cp -P ${PREFIX}/lib/*.so* $DEPLOY_DIR/lib/
11+
cp -P ${PREFIX}/lib64/libjpeg*.so* $DEPLOY_DIR/lib/
12+
13+
strip $DEPLOY_DIR/lib/* || true
14+
15+
# copy GDAL_DATA files over
16+
mkdir -p $DEPLOY_DIR/share
17+
rsync -ax $PREFIX/share/gdal $DEPLOY_DIR/share/
18+
rsync -ax $PREFIX/share/proj $DEPLOY_DIR/share/
19+
620
# Get Python version
721
PYVERSION=$(cat /root/.pyenv/version)
822
MAJOR=${PYVERSION%%.*}

0 commit comments

Comments
 (0)