-
Notifications
You must be signed in to change notification settings - Fork 2
/
conda-install-dependencies.sh
executable file
·51 lines (41 loc) · 1.4 KB
/
conda-install-dependencies.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
#!/bin/bash
# Uncomment what is necessary to reinstall by force
#rm -f ${CONDA_PREFIX}/lib/libvelocypack.a
#rm -f ${CONDA_PREFIX}/lib/libjsonarango.a
threads=3
BRANCH_JSON=master
BRANCH_TFUN=master
# Velocypack from ArangoDB (added for installing JSONIO database client)
# if no VPack installed in ${CONDA_PREFIX}/lib/libvelocypack.a
test -f ${CONDA_PREFIX}/lib/libvelocypack.a || {
# Building velocypack library
mkdir -p ~/code && \
cd ~/code && \
git clone https://github.com/arangodb/velocypack.git && \
cd velocypack && \
mkdir -p build && \
cd build && \
cmake .. -DCMAKE_CXX_FLAGS=-fPIC -DBuildVelocyPackExamples=OFF -DCMAKE_INSTALL_PREFIX:PATH=${CONDA_PREFIX} && \
make -j $threads && \
make install
# Removing generated build files
cd ~ && \
rm -rf ~/code
}
# jsonarango database client (added for building ThermoMatch code)
# if no jsonarango installed in ${CONDA_PREFIX}/lib/libjsonarango.a (${CONDA_PREFIX}/include/libjsonarango)
test -f ${CONDA_PREFIX}/lib/libjsonarango.a || {
# Building jsonarango library
mkdir -p ~/code && \
cd ~/code && \
git clone https://bitbucket.org/gems4/jsonarango.git -b $BRANCH_JSON && \
cd jsonarango && \
mkdir -p build && \
cd build && \
cmake .. -DCMAKE_CXX_FLAGS=-fPIC -DJSONARANGO_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release && \
make -j $threads && \
make install
# Removing generated build files
cd ~ && \
rm -rf ~/code
}