forked from Callidon/pyHDT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·22 lines (17 loc) · 900 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env bash
# scripts for automated installation
echo "Validating dependencies..."
command -v python >/dev/null 2>&1 || { echo >&2 "Python is required for the installation of pyHDT! Aborting installation..."; exit 1; }
command -v pip >/dev/null 2>&1 || { echo >&2 "pip is required for the installation of pyHDT! Aborting installation..."; exit 1; }
command -v wget >/dev/null 2>&1 || { echo >&2 "wget is required for the installation of pyHDT! Aborting installation..."; exit 1; }
command -v unzip >/dev/null 2>&1 || { echo >&2 "unzip is required for the installation of pyHDT! Aborting installation..."; exit 1; }
echo "Downloading HDT..."
wget https://github.com/rdfhdt/hdt-cpp/archive/v1.3.3.zip
unzip v1.3.3.zip
echo "Installing pybind11..."
pip install -r requirements.txt
echo "Installing pyHDT..."
python setup.py install
echo "Cleaning up..."
rm v1.3.3.zip
rm -rf hdt-cpp-1.3.3/