forked from scattering/dataflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.py
39 lines (35 loc) · 1.34 KB
/
install.py
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
#!/usr/bin/python
import sys
from subprocess import Popen, call
# Please run sudo -s before this script.
if __name__=="__main__":
apt_commands=['ipython',
'git',
'git-doc',
'git-core',
'git-gui',
'python-django',
'python-setuptools',
'python-numpy',
'python-scipy',
'python-matplotlib',
'python-dev',
'pyton-psycopg2',
'vim',
'subversion',
#'postgresql',
]
easy_commands=['simplejson','stompservice','orbited']
for command in apt_commands:
s='apt-get -y install %s'%(command,)
print s
call(s,shell=True)
#Popen(['apt-get','install','-y',command])
call('easy_install pip',shell=True)
call('easy_install openopt', shell=True)
#call('wget http://trac.openopt.org/openopt/changeset/latest/PythonPackages?old_path=%2F&format=zip',shell=True)
call('svn co svn://openopt.org/PythonPackages OOSuite',shell=True)
call('cd OOSuite; python install_all.py; cd ..',shell=True)
for command in easy_commands:
call('pip install %s'%(command,),shell=True)
#NOTE: Also install matplotlib and download and install natgrid (https://github.com/matplotlib/natgrid)