-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
30 lines (26 loc) · 889 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
clean:
rm -rf dist
rm -rf dist_package
rm -rf build
rm -rf __pycache__
rm -f cma.spec
rm -f cumulus-message-adapter.zip
dist:
mkdir -p dist/cma_bin
requirements: dist requirements.txt
pip install -r requirements.txt --target ./dist/
find ./dist -type d -name '__pycache__' | xargs rm -rf
find ./dist/botocore/data -mindepth 1 -maxdepth 1 -type d |\
egrep -v '(stepfunctions|s3)' |\
xargs rm -rf
rm -rf dist/docutils
packaged_runtime: requirements
pip install -r requirements-dev.txt
cp __main__.py ./dist/
pyinstaller --add-binary /usr/lib64/libcrypt.so.1:. --distpath dist_package --clean -n cma ./dist/__main__.py
cumulus-message-adapter.zip: requirements packaged_runtime
cp __main__.py ./dist/
cp -R message_adapter ./dist/
cp -R ./dist_package/cma/* ./dist/
ln -s ../cma ./dist/cma_bin/cma
(cd dist && zip --symlinks -r -9 ../cumulus-message-adapter.zip .)