-
Notifications
You must be signed in to change notification settings - Fork 0
/
vEnv.sh
executable file
·74 lines (55 loc) · 1.61 KB
/
vEnv.sh
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
#----------------------------------------------
# Note that this is the standard way of doing
# things in Python 3.6. Earlier versions used
# virtulalenv. It is best to convert to 3.6
# before you do anything else.
# Note that the default Python version in
# the AWS Ubuntu is 3.5 at the moment. You
# will need to upgrade the the new version
# if you wish to use this environment in
# AWS
#----------------------------------------------
python3 -m venv env
# this is for bash. Activate
# it differently for different shells
#--------------------------------------
source env/bin/activate
pip3 install --upgrade pip
if [ -e requirements.txt ]; then
pip3 install -r requirements.txt
else
pip3 install pytest
pip3 install pytest-cov
pip3 install sphinx
pip3 install sphinx_rtd_theme
# Logging into logstash
pip3 install python-logstash
# networkX for graphics
pip3 install networkx
pip3 install pydot # dot layout
# Utilities
pip3 install jupyter
pip3 install jupyterlab
pip3 install tqdm
pip3 install jsonref
# scientific libraries
pip3 install numpy
pip3 install scipy
pip3 install pandas
# ML libraries
pip3 install -U scikit-learn
# database stuff
pip3 install psycopg2-binary
# Charting libraries
pip3 install matplotlib
pip3 install seaborn
# Neuroblu python package
pip3 install -e git+ssh://git@github.com/Holmusk/neuroblu_postgres.git@v1.0.0#egg=neuroblu_postgres
pip3 freeze > requirements.txt
# Generate the documentation
cd src
make doc
cd ..
fi
deactivate