-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·49 lines (35 loc) · 889 Bytes
/
setup.sh
File metadata and controls
executable file
·49 lines (35 loc) · 889 Bytes
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
# Remove old files
./clean.sh
# Create Virtual Environment
python3 -m venv venv
# Activate the environment
. venv/bin/activate
# Upgrade pip to latest
pip install --upgrade pip
# Install Flask and other dependancies within virtual environment
pip install numpy sklearn python-dotenv watchdog simplejson
# Install entropy package
git clone https://github.com/raphaelvallat/entropy.git entropy/
cd entropy/
pip install -r requirements.txt
python setup.py develop
cd ..
# Deactivate virtual environment
deactivate
# Clone hera
git clone https://bitbucket.org/grey_narn/hera.git
# Patching for macport error
patch hera/bottleneck/CMakeLists.txt hera_macport.patch
# Build Hera Bottleneck
mkdir hera/bottleneck/bin
cd hera/bottleneck/bin
cmake ..
make
cd ../../../
# Build Hera Wasserstein
mkdir hera/wasserstein/bin
cd hera/wasserstein/bin
cmake ..
make
cd ../../../