Browse Source

Analytics building script #229 (#358)

pull/1/head
rozetko 6 years ago committed by GitHub
parent
commit
5ccb2c3fed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      analytics/Compilation.md
  2. 3
      analytics/scripts/build_dist.sh

12
analytics/Compilation.md

@ -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
```

3
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
Loading…
Cancel
Save