-
Notifications
You must be signed in to change notification settings - Fork 1
/
Install.py
47 lines (33 loc) · 967 Bytes
/
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
40
41
42
43
44
45
46
47
#!/usr/bin/python
import argparse
import subprocess
def Install() :
"""
Setup the environment.
"""
print '---------------------'
print 'Setup the environment'
command = 'make -j4'
print '>', command
subprocess.call(command,shell=True,cwd='../')
command = 'make install'
print '>', command
subprocess.call(command,shell=True,cwd='../')
command = '/afs/cern.ch/project/eos/installation/0.3.15/bin/eos.select -b fuse mount ~/eos'
print '>', command
subprocess.call(command,shell=True)
command = 'chmod +x run.sh'
print '>', command
subprocess.call(command,shell=True,cwd='../')
command = './run.sh bash'
print '>', command
# subprocess.Popen(command,shell=True,cwd='./KeplerDev_v3r0/')
subprocess.call([command,'bash'],shell=True,cwd='../')
print '---------------------'
return
###############
#
# Main function
#
if __name__ == "__main__" :
Install()