-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.sh
executable file
·38 lines (31 loc) · 930 Bytes
/
build.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
#!/bin/bash
# Determnine OS type for venv directories
binDir="bin" # Default for linux / macos
if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
binDir="Scripts"
fi
install()
{
python -m venv --system-site-packages .venv
.venv/$binDir/pip3 install --ignore-installed -r requirements.txt
.venv/$binDir/pip3 install --user ./GoVizzy/cube
.venv/$binDir/pip3 install --user ./GoVizzy/gv_ui
}
launch()
{
.venv/$binDir/pip3 install --user ./GoVizzy/cube
.venv/$binDir/pip3 install --user ./GoVizzy/gv_ui
.venv/$binDir/jupyter lab --notebook-dir=GoVizzy
}
if [ -f .venv/$binDir/jupyter ]; then
echo "GoVizzy already installed, to reinstall run ./clean.sh then ./build.sh"
else
install
fi
# Determine if we are in Github Actions
if [ "$ACTIONS_ENVIRONMENT" = true ]; then
echo "Running in Github action. Will not start JupyterLab."
exit 0
fi
echo "Launching GoVizzy"
launch