forked from openframeworks/ofSite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·27 lines (27 loc) · 790 Bytes
/
install.sh
File metadata and controls
executable file
·27 lines (27 loc) · 790 Bytes
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
#!/usr/bin/env bash
OS=$(uname -s)
PIP=pip
if [ "$OS" == "Linux" ]; then
sudo apt-get install python3 python3-pip asciidoctor
PIP=$(ls /usr/bin/pip-3* | head -n1)
if [ "$PIP" == "" ]; then
PIP=$(ls /usr/bin/pip3 | head -n1)
fi
if [ "$PIP" == "" ]; then
PIP=$(which pip)
fi
if [ "$PIP" == "" ]; then
echo Couldn\'t find pip for python3, please install it manually
fi
fi
if [ "$(which python3)" == "" ]; then
echo ofSite needs python3, pip and asciidoctor to run, please install them before running this script
exit 1
fi
sudo $PIP install virtualenv
virtualenv -p $(which python3) nikola
source nikola/bin/activate
pip install --upgrade "Nikola[extras]"
pip install --upgrade python-Levenshtein
pip install --upgrade pathlib
pip install --upgrade beautifulsoup4