forked from awslabs/amazon-neptune-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'awslabs:master' into yang/double-quote-escape
- Loading branch information
Showing
2 changed files
with
100 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash -ex | ||
|
||
pushd . | ||
pip install virtualenv | ||
rm -rf target | ||
rm -rf temp | ||
mkdir target | ||
virtualenv temp --python=python3.8 | ||
source temp/bin/activate | ||
cd temp | ||
pip install gremlinpython==3.5.1 | ||
pip install requests | ||
pip install backoff | ||
pip install cchardet | ||
pip install aiodns | ||
pip install idna-ssl | ||
pushd lib/python3.8/site-packages | ||
#rm -rf certifi-* | ||
rm -rf easy_install.py | ||
rm -rf six.py | ||
cp -r ../../../../neptune_python_utils . | ||
popd | ||
mkdir python | ||
mv lib python/lib | ||
zip -r neptune_python_utils_lambda_layer.zip python \ | ||
-x "*pycache*" \ | ||
-x "*.so" \ | ||
-x "*dist-info*" \ | ||
-x "*.virtualenv" \ | ||
-x "*/pip*" \ | ||
-x "*/pkg_resources*" \ | ||
-x "*/setuptools*" \ | ||
-x "*/wheel*" \ | ||
-x "*distutils*" \ | ||
-x "*/_virtualenv.*" \ | ||
#-x "*/certifi*" | ||
deactivate | ||
popd | ||
mv temp/neptune_python_utils_lambda_layer.zip target/neptune_python_utils_lambda_layer.zip | ||
rm -rf temp |