13
13
#----------------------------------------------------------------------------------------------
14
14
15
15
class RedisJSONSetup (paella .Setup ):
16
- def __init__ (self , nop = False ):
17
- paella .Setup .__init__ (self , nop )
16
+ def __init__ (self , args ):
17
+ paella .Setup .__init__ (self , args . nop )
18
18
19
19
def common_first (self ):
20
20
self .install_downloaders ()
21
- self .install ("unzip" )
22
- self .pip_install ("wheel" )
23
- self .pip_install ("setuptools --upgrade" )
24
-
25
- self .install ("git rsync" )
21
+ self .run ("%s/bin/enable-utf8" % READIES , sudo = self .os != 'macos' )
22
+ self .install ("git unzip rsync" )
26
23
24
+ if self .osnick == 'ol8' :
25
+ self .install ("tar" )
27
26
if not self .has_command ("clang" ):
28
27
self .run ("%s/bin/getclang --modern" % READIES )
29
28
if not self .has_command ("rustc" ):
30
29
self .run ("%s/bin/getrust" % READIES )
31
- self .run ("%s/bin/getcmake" % READIES )
30
+ self .run ("%s/bin/getcmake --usr " % READIES )
32
31
33
32
def debian_compat (self ):
34
- self .run ("%s/bin/enable-utf8" % READIES )
35
33
self .run ("%s/bin/getgcc" % READIES )
36
34
37
35
def redhat_compat (self ):
38
- if self .osnick == 'ol8' :
39
- self .install ("tar" )
40
- self .run ("%s/bin/enable-utf8" % READIES )
41
36
self .install ("redhat-lsb-core" )
42
37
self .run ("%s/bin/getgcc --modern" % READIES )
43
38
@@ -50,10 +45,10 @@ def macos(self):
50
45
self .run ("%s/bin/getgcc" % READIES )
51
46
52
47
def common_last (self ):
53
- self .run ("python3 %s /bin/getrmpytools" % READIES )
48
+ self .run ("{PYTHON} {READIES} /bin/getrmpytools" . format ( PYTHON = self . python , READIES = READIES ) )
54
49
self .pip_install ("-r %s/tests/pytest/requirements.txt" % ROOT )
55
50
self .pip_install ("toml" )
56
- self .pip_install ("awscli" )
51
+ self .pip_install ("pudb awscli" )
57
52
self .pip_install ("gevent" )
58
53
59
54
#----------------------------------------------------------------------------------------------
@@ -62,4 +57,4 @@ def common_last(self):
62
57
parser .add_argument ('-n' , '--nop' , action = "store_true" , help = 'no operation' )
63
58
args = parser .parse_args ()
64
59
65
- RedisJSONSetup (nop = args . nop ).setup ()
60
+ RedisJSONSetup (args ).setup ()
0 commit comments