-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.sh
executable file
·37 lines (29 loc) · 1.02 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
32
33
34
35
36
37
#!/bin/bash
LIB="lib"
# Make third party folder
if [[ ! -d $LIB ]]; then
mkdir $LIB
fi
# Get third party dependencies
if [[ ! -d "$LIB/pygrooveshark" ]]; then
git clone "https://github.com/koehlma/pygrooveshark.git" $LIB/pygrooveshark
cd $LIB/pygrooveshark
if [[ "$(uname)" == "Darwin" && -f "/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python" ]]; then
sudo /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python setup.py install
else
sudo python setup.py install
fi
cd ../../
fi
if [[ ! -d "$LIB/skype4py" ]]; then
git clone "https://github.com/awahlig/skype4py.git" $LIB/skype4py
cd $LIB/skype4py
if [[ "$(uname)" == "Darwin" && -f "/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python" ]]; then
sudo arch -i386 /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python setup.py install
else
sudo python setup.py install
fi
cd ../../
fi
# Pip dependencies
sudo pip install -r requirements.txt