generated from tweag/project
-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup_install.sh
executable file
·39 lines (31 loc) · 1.23 KB
/
setup_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
32
33
34
35
36
37
38
39
#!/bin/sh
PLATFORM_TYPE=$(command uname)
# Run Steps that is not dependent on python virtual environment
python ./setup_install.py global
RETCODE=$?
if [ $RETCODE = 0 ]; then
# Activate Virtual Environment at the end of install script.
if [ "$PLATFORM_TYPE" = "Darwin" ]; then
. $HOME/.bp-venv/bin/activate
elif [ "$PLATFORM_TYPE" = "Linux" ]; then
. $HOME/.bp-venv/bin/activate
else
. $HOME\\.bp-venv\\Scripts\\activate
fi
else
true
fi
echo "Activated Virtual Environment .bp-venv..."
echo "\n"
# Activate Virtual Environment and then run remaining setup steps that's dependent on venv & dependencies.
python ./setup_install.py venv
RETCODE=$?
if [ $RETCODE = 0 ]; then
if [ "$PLATFORM_TYPE" = "Windows" ]; then
echo -e "Yet another Important Note: Please activate virtual environment using command \". $HOME\\.bp-venv\\Scripts\\activate\" while running test cases from new shell. Need not activate now, since it is already activated."
else
echo -e "Yet another Important Note: Please activate virtual environment using command \". $HOME/.bp-venv/bin/activate\" while running test cases from new shell. Need not activate now, since it is already activated."
fi
else
true
fi