Skip to content

Commit 8ed4af9

Browse files
vishalbolludeliahu
authored andcommitted
Build and upload python package to S3 (#1562)
(cherry picked from commit fb20217)
1 parent ebe6499 commit 8ed4af9

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build/cli.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,23 @@ function build_and_upload() {
4646
rm cortex
4747
}
4848

49+
function build_python {
50+
pushd $ROOT/pkg/workloads/cortex/client
51+
python setup.py sdist
52+
53+
if [ "$upload" == "true" ]; then
54+
echo "Uploading Cortex CLI to s3://$CLI_BUCKET_NAME/$CORTEX_VERSION/python/cortex-$CORTEX_VERSION.tar.gz"
55+
aws s3 cp dist/cortex-$CORTEX_VERSION.tar.gz s3://$CLI_BUCKET_NAME/$CORTEX_VERSION/python/cortex-$CORTEX_VERSION.tar.gz
56+
fi
57+
58+
rm -rf dist/
59+
rm -rf cortex.egg-info/
60+
61+
popd
62+
}
63+
4964
build_and_upload darwin
5065

5166
build_and_upload linux
67+
68+
build_python

0 commit comments

Comments
 (0)