-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.sh
executable file
·31 lines (29 loc) · 1.03 KB
/
setup.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
#!/bin/bash
function print_seperator(){
echo "**************************************************"
echo "**************************************************"
echo "**************************************************"
echo "**************************************************"
echo "$1"
echo "**************************************************"
echo "**************************************************"
echo "**************************************************"
echo "**************************************************"
}
if [[ -d "./venv" ]]; then
print_seperator "Removing previous venv exists"
rm -rf ./venv
fi
print_seperator "Creating python3 virtualenv"
python3 -m venv venv
py3="./venv/bin/python3"
if [[ -f $py3 ]]; then
print_seperator "Running Python Installation"
$py3 setup.py install
print_seperator "Starting RC File Generation"
$py3 setup.py rcfile
print_seperator "Running RC File verification"
$py3 setup.py verify
else
echo "Python3 venv package not available"
fi