-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·56 lines (47 loc) · 1.51 KB
/
bootstrap.sh
File metadata and controls
executable file
·56 lines (47 loc) · 1.51 KB
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
#!/usr/bin/env bash
set -o errexit
set -o nounset
set -o pipefail
if [ -v GITLAB_CI ]; then
SUDO=""
else
SUDO="sudo "
fi
$SUDO apt-get update --fix-missing
$SUDO apt-get install -y python-setuptools build-essential libgl1-mesa-glx unzip
(cd agent/vision; GPU=0 OPENCV=0 REBUILD=1 python2 setup.py build_ext)
conda env create --force --file environment.yml
AILEEN_ENV="$(conda config --show envs_dirs | grep -o "/.*" | head -1)/aileen"
###############################################################################
# Commented out because this is already pre-installed in Docker image for CI. #
###############################################################################
#
# (
# cd /tmp;
# wget http://soar.eecs.umich.edu/downloads/SoarSuite/SoarSuite_9.6.0-Multiplatform_64bit.zip --no-check-certificate;
# $SUDO unzip -d /usr/local SoarSuite_9.6.0-Multiplatform_64bit.zip
# )
#
# (
# cd /tmp;
# wget http://www.openfst.org/twiki/pub/FST/FstDownload/openfst-1.6.8.tar.gz;
# tar xf openfst-1.6.8.tar.gz;
# cd openfst-1.6.8;
# ./configure --enable-grm --prefix="$AILEEN_ENV";
# make -j4 install
# )
# (
# cd /tmp;
# git clone https://github.com/google/re2;
# cd re2;
# git checkout 2018-04-01;
# make -j4 install prefix="" DESTDIR="$AILEEN_ENV"
# )
# (
# cd /tmp;
# wget http://www.openfst.org/twiki/pub/GRM/PyniniDownload/pynini-1.9.3.tar.gz;
# tar xf pynini-1.9.3.tar.gz;
# cd pynini-1.9.3;
# source activate aileen;
# CPATH="$AILEEN_ENV/include" python setup.py install &> /dev/null
# )