-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall.sh
executable file
·56 lines (53 loc) · 1.11 KB
/
install.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
#!/bin/bash
set -x
case "`uname`" in
'Linux')
sudo apt-get update
sudo apt-get install -y \
ccache \
cmake \
g++ \
gdb \
graphviz \
libboost-filesystem1.54-dev \
libgoogle-perftools-dev \
libprotobuf-dev \
libssl-dev \
libtbb-dev \
libzmq3-dev \
make \
p7zip-full \
protobuf-compiler \
python-pip \
python-protobuf \
#
;;
'Darwin')
brew update
brew bundle -v # installs dependencies from Brewfile
;;
*)
echo "Unsupported OS: `uname`"
return 1
;;
esac
if env | grep -q ^VIRTUAL_ENV=
then
echo "Installing in $VIRTUAL_ENV"
else
echo "Making new virtualenv"
mkvirtualenv --system-site-packages pomagma
if [ "`uname`" -eq 'Darwin' ]; then
echo "Using clang-omp compiler"
echo 'export CC=/usr/local/bin/clang-omp' >> \
"$VIRTUAL_ENV/bin/postactivate"
echo 'export CXX=/usr/local/bin/clang-omp++' >> \
"$VIRTUAL_ENV/bin/postactivate"
fi
deactivate
workon pomagma
fi
pip install -r requirements.txt
pip install -e .
. $VIRTUAL_ENV/bin/activate
make all