forked from Fiverdug/biosiglive
-
Notifications
You must be signed in to change notification settings - Fork 1
/
installation.sh
executable file
·41 lines (30 loc) · 1.23 KB
/
installation.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
40
#!/bin/bash
read -p "Do you already have a virtual environment you would like to use (y/n)? If you do not know what is a virtual environment, simply press 'n' " yn
##### if yes, then just activate the venv and install the reqs #####
if [[ "$yn" == "y" ]]; then
read -p "What's the name of the virtual environment? " venv
elif [[ "$yn" == "n" ]]; then
pip3 install virtualenv
virtualenv mappemg_venv
venv="mappemg_venv"
fi
#echo "test3"
pip install --upgrade pip #upgrading pip
if [[ "$OSTYPE" == "darwin"* ]] || [[ "$OSTYPE" == "linux"* ]]; then # Mac OSX and Linux
source $venv/bin/activate
elif [[ "$OSTYPE" == "msys" ]]; then
# Lightweight shell and GNU utilities compiled for Windows (part of MinGW)
source $venv/Scripts/activate
fi
pip3 install -r requirements.txt
python3 setup.py install
# elif [[ "$OSTYPE" == "cygwin" ]]; then
# # POSIX compatibility layer and Linux environment emulation for Windows
# elif [[ "$OSTYPE" == "msys" ]]; then
# # Lightweight shell and GNU utilities compiled for Windows (part of MinGW)
# elif [[ "$OSTYPE" == "win32" ]]; then
# # I'm not sure this can happen.
# elif [[ "$OSTYPE" == "freebsd"* ]]; then
# # ...
# else
# # Unknown.