forked from hazelduvall/othello_tourney
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·31 lines (27 loc) · 759 Bytes
/
setup.sh
File metadata and controls
executable file
·31 lines (27 loc) · 759 Bytes
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
echo "Made for a debian distribution, look at source if running other distro"
if [ $# -ne 1 ]
then
echo "Must be run with 'web' or 'vm'"
fi
if [ $1 == "web" ]
then
sudo apt-get install python3 python3-virtualenv
virtualenv --python python3 venv
source venv/bin/activate
pip install eventlet flask
{ #try
pip install socketio
} || { #catch
sudo apt-get install wget
wget https://pypi.python.org/packages/d7/83/e3d5bbfe9eaceb4d116dfbf121c7b09069693bf6392a6f741ca6c6030d6b/python-socketio-1.7.4.tar.gz
tar xvf python-socketio-1.7.4.tar.gz
cd python-socketio
python3 setup.py install
}
fi
if [ $1 == "vm" ]
then
sudo apt-get install python3
fi
echo "Done!"