Skip to content

Commit db331ca

Browse files
authored
fix: prevent lambda build from deleting libarrow files (#2418)
Signed-off-by: Abdel Jaidi <[email protected]>
1 parent 44a5683 commit db331ca

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

building/lambda/build-lambda-layer.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rm -rf dist arrow
1212

1313
export ARROW_HOME=$(pwd)/dist
1414
export LD_LIBRARY_PATH=$(pwd)/dist/lib:$LD_LIBRARY_PATH
15+
export CMAKE_PREFIX_PATH=$ARROW_HOME:$CMAKE_PREFIX_PATH
1516

1617
git clone \
1718
--depth 1 \
@@ -85,10 +86,6 @@ pip3 install . -t ./python ".[redshift,mysql,postgres,gremlin,opensearch,openpyx
8586
rm -rf python/pyarrow*
8687
rm -rf python/boto*
8788

88-
rm -f /aws-sdk-pandas/dist/pyarrow_files/pyarrow/libarrow.so
89-
rm -f /aws-sdk-pandas/dist/pyarrow_files/pyarrow/libparquet.so
90-
rm -f /aws-sdk-pandas/dist/pyarrow_files/pyarrow/libarrow_python.so
91-
9289
cp -r /aws-sdk-pandas/dist/pyarrow_files/pyarrow* python/
9390

9491
# Removing nonessential files

0 commit comments

Comments
 (0)