Commit | Line | Data |
---|---|---|
651e1c20 PH |
1 | #!/bin/bash |
2 | ||
3 | printf "{{LIBNAME:UC}} Python Library: Installer\n\n" | |
4 | ||
5 | if [ $(id -u) -ne 0 ]; then | |
6 | printf "Script must be run as root. Try 'sudo ./install.sh'\n" | |
7 | exit 1 | |
8 | fi | |
9 | ||
10 | cd library | |
11 | ||
12 | printf "Installing for Python 2..\n" | |
13 | python setup.py install | |
14 | ||
15 | if [ -f "/usr/bin/python3" ]; then | |
16 | printf "Installing for Python 3..\n" | |
17 | python3 setup.py install | |
18 | fi | |
19 | ||
20 | cd .. | |
21 | ||
22 | printf "Done!\n" |