From 5ccb2c3feddcb432f03ed763e65d56d6defd6eb8 Mon Sep 17 00:00:00 2001 From: rozetko Date: Tue, 22 Jan 2019 16:49:01 +0300 Subject: [PATCH] Analytics building script #229 (#358) --- analytics/Compilation.md | 12 ------------ analytics/scripts/build_dist.sh | 3 +++ 2 files changed, 3 insertions(+), 12 deletions(-) delete mode 100644 analytics/Compilation.md create mode 100644 analytics/scripts/build_dist.sh diff --git a/analytics/Compilation.md b/analytics/Compilation.md deleted file mode 100644 index 3e234b2..0000000 --- a/analytics/Compilation.md +++ /dev/null @@ -1,12 +0,0 @@ -# Compilation - -We use [pyinstaller](https://www.pyinstaller.org/) to compile analytics unit into binary file with all the dependencies. - -Compiled module is supported by all *nix systems. - -```bash -pip3 install pyinstaller -cd $HASTIC_SERVER_PATH/analytics -pyinstaller --additional-hooks-dir=pyinstaller_hooks --paths=analytics/ bin/server -``` - diff --git a/analytics/scripts/build_dist.sh b/analytics/scripts/build_dist.sh new file mode 100644 index 0000000..c1e9fff --- /dev/null +++ b/analytics/scripts/build_dist.sh @@ -0,0 +1,3 @@ +#!/bin/bash +cd .. +python3.6 -m PyInstaller --paths=analytics/ --additional-hooks-dir=pyinstaller_hooks bin/server