Skip to content

Commit

Permalink
fix: prevent lambda build from deleting libarrow files (#2418)
Browse files Browse the repository at this point in the history
Signed-off-by: Abdel Jaidi <[email protected]>
  • Loading branch information
jaidisido authored Aug 1, 2023
1 parent 44a5683 commit db331ca
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions building/lambda/build-lambda-layer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ rm -rf dist arrow

export ARROW_HOME=$(pwd)/dist
export LD_LIBRARY_PATH=$(pwd)/dist/lib:$LD_LIBRARY_PATH
export CMAKE_PREFIX_PATH=$ARROW_HOME:$CMAKE_PREFIX_PATH

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

rm -f /aws-sdk-pandas/dist/pyarrow_files/pyarrow/libarrow.so
rm -f /aws-sdk-pandas/dist/pyarrow_files/pyarrow/libparquet.so
rm -f /aws-sdk-pandas/dist/pyarrow_files/pyarrow/libarrow_python.so

cp -r /aws-sdk-pandas/dist/pyarrow_files/pyarrow* python/

# Removing nonessential files
Expand Down

0 comments on commit db331ca

Please sign in to comment.