forked from jefflester/minitrino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·31 lines (25 loc) · 924 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
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
function install() {
if pip --version 2>&1 | grep -q -e "python3.[6-9]" -e "python 3.[6-9]"; then
PIP=pip
elif pip3 --version 2>&1 | grep -q -e "python3.[6-9]" -e "python 3.[6-9]"; then
PIP=pip3
else
echo "Minipresto requires Python 3.6+. Please install a compatible Python version and ensure Pip points to it."
exit 1
fi
if [[ $1 == "-v" ]]; then
set -ex
echo "Installing minipresto CLI..."
"${PIP}" install --editable "${BASH_SOURCE%/*}"/cli/
else
set -e
echo "Installing minipresto CLI..."
"${PIP}" install -q --editable "${BASH_SOURCE%/*}"/cli/
fi
}
time install $1
echo -e "\nInstallation complete! Start with the CLI by configuring it running 'minipresto config' \
(you can do this later). Alternatively, get started immediately with 'minipresto provision'.\n"
minipresto
echo -e "\n"