-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·51 lines (34 loc) · 1.11 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
## Download python 2.7.8 (Fearless needs this version)
wget --no-check-certificate https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz
## install some packages to compile python
sudo yum groupinstall "Development tools" -y
sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel -y
## extract and cinfigure
tar xf Python-2.7.8.tar.xz
cd Python-2.7.8
./configure --prefix=/usr/local
## make and install
make
sudo make altinstall
## clean the mess
cd ..
rm -rf Python-2.7.8/
rm -f Python-2.7.8.tar.xz
## download get_pip
wget --no-check-certificate https://bootstrap.pypa.io/get-pip.py
## install pip
sudo /usr/local/bin/python2.7 get-pip.py
# install pip on main system python
sudo python get-pip.py
## clean mess
rm -f get-pip.py
## install virtualenv
sudo pip install -U supervisor virtualenv httpie
## prepare a pyenv
sudo /usr/local/bin/python2.7 -m pip install -U virtualenv
/usr/local/bin/python2.7 -m virtualenv --always-copy pyenv
/usr/local/bin/python2.7 -m virtualenv --relocatable pyenv/
source pyenv/bin/activate
pip install fabric mako cython numpy
fab install