-
Notifications
You must be signed in to change notification settings - Fork 9
/
system-setup.py
executable file
·64 lines (49 loc) · 2.03 KB
/
system-setup.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env python2
import sys
import os
import argparse
ROOT = HERE = os.path.abspath(os.path.dirname(__file__))
READIES = os.path.join(ROOT, "deps/readies")
sys.path.insert(0, READIES)
import paella
#----------------------------------------------------------------------------------------------
class RedisRSCoordinatorSetup(paella.Setup):
def __init__(self, nop=False):
paella.Setup.__init__(self, nop)
def common_first(self):
self.install_downloaders()
self.pip_install("wheel")
self.pip_install("--ignore-installed --no-cache-dir setuptools --upgrade")
self.install("git gawk lcov jq openssl rsync unzip")
def debian_compat(self):
self.install("libatomic1")
if self.osnick == 'trusty':
self.ubuntu_trusty()
else:
self.run("%s/bin/getgcc" % READIES)
self.install("libtool m4 automake libssl-dev")
def ubuntu_trusty(self):
self.run("%s/bin/getgcc --modern" % READIES)
self.install("libtool m4 automake libssl-dev") # after modern gcc
self.install("realpath")
self.install_linux_gnu_tar()
def redhat_compat(self):
self.install("redhat-lsb-core")
self.install("libatomic")
self.run("%s/bin/getgcc --modern" % READIES)
self.install("libtool m4 automake openssl-devel")
def fedora(self):
self.install("libatomic")
self.run("%s/bin/getgcc" % READIES)
self.install("openssl-devel")
def macos(self):
pass
def common_last(self):
self.run("%s/bin/getcmake --usr" % READIES)
self.run("{PYTHON} {READIES}/bin/getrmpytools".format(PYTHON=self.python, READIES=READIES))
self.pip_install("awscli pudb")
#----------------------------------------------------------------------------------------------
parser = argparse.ArgumentParser(description='Set up system for build.')
parser.add_argument('-n', '--nop', action="store_true", help='no operation')
args = parser.parse_args()
RedisRSCoordinatorSetup(nop = args.nop).setup()