forked from chembl/mychembl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rdkit_install.sh
28 lines (24 loc) · 1.08 KB
/
rdkit_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
#!/bin/bash
export HOME=/home/chembl
export RDBASE=$HOME/rdkit
export LD_LIBRARY_PATH=$RDBASE/lib:$LD_LIBRARY_PATH
export PYTHONPATH=$RDBASE:$PYTHONPATH
[[ "$AUX_OS_NAME" = "Ubuntu" ]] && export PATH=$PATH || export PATH=$PATH:/usr/pgsql-9.3/bin/
[[ "$AUX_OS_NAME" = "Ubuntu" ]] && export PYTHON_NUMPY_INCLUDE_PATH=/usr/local/lib/python2.7/dist-packages/numpy/core/include/ || export PYTHON_NUMPY_INCLUDE_PATH=/usr/lib/python2.7/site-packages/numpy/core/include/
cd $HOME
git clone $RDKIT_REPO
cd rdkit/
git checkout tags/$RDKIT_RELEASE
cd $RDBASE/External/INCHI-API
sed -i 's/sites\/default\/files\/inchi-1.04\/INCHI-1-API\.ZIP/wp\/wp-content\/uploads\/2014\/06\/INCHI-1-API\.zip/g' download-inchi.sh
bash download-inchi.sh
cd $RDBASE
mkdir build
cd build
cmake -DRDK_BUILD_INCHI_SUPPORT=ON -DBoost_USE_STATIC_LIBS=OFF -DPYTHON_NUMPY_INCLUDE_PATH=$PYTHON_NUMPY_INCLUDE_PATH ..
make -j4 install
ctest
cd $RDBASE/Code/PgSQL/rdkit
make
[[ "$AUX_OS_NAME" = "Ubuntu" ]] && echo "chemblvm" | sudo -S make install || echo "chemblvm" | sudo -S PATH=$PATH:/usr/pgsql-9.3/bin/ make install
make installcheck