-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall.sh
executable file
·46 lines (32 loc) · 1.1 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
#!/bin/bash
touch __init__.py
#export AQML_ROOT=$PWD
#export CHEMPACK=RDKIT # or OECHEM
# Build core ML library (mainly fortran code for
# time-consuming part of compuation)
cd $AQML_ROOT/coreml
python setup.py install
# dependencies
sysname=`uname`
if [[ "$CHEMPACK" == "OECHEM" ]]
then
if [[ "$sysname" == "Linux" ]]; then
#pip install -i https://pypi.anaconda.org/openeye/simple openeye-toolkits-python3-linux-x64
pip install -i https://pypi.anaconda.org/OpenEye/simple OpenEye-toolkits
elif [[ "$sysname" == "Darwin" ]]; then
#pip install -i https://pypi.anaconda.org/openeye/simple openeye-toolkits-python3-osx-x64
pip install -i https://pypi.anaconda.org/OpenEye/simple OpenEye-toolkits
else
echo "system not supported"
exit 1
fi
fi
# install numpy, scipy and others
pip install numpy scipy ase networkx imolecule
# install rdkit (version>=2019)
conda install -y -c rdkit rdkit
# at last,
echo "export AQML_ROOT=$AQML_ROOT" >>~/.bashrc
echo "export PYTHONPATH=\$AQML_ROOT/../:\$PYTHONPATH" >>~/.bashrc
echo "export PATH=\$AQML_ROOT/bin:\$PATH" >>~/.bashrc
#source ~/.bashrc