1313#----------------------------------------------------------------------------------------------
1414
1515class VecSimSetup (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 )
1818
1919 def common_first (self ):
2020 self .install_downloaders ()
21- self .pip_install ("wheel" )
22- self .pip_install ("setuptools --upgrade" )
2321
22+ self .run ("%s/bin/enable-utf8" % READIES , sudo = self .os != 'macos' )
2423 self .install ("git" )
2524
26- self .run ("%s/bin/enable-utf8" % READIES )
27- self .run ("%s/bin/getcmake" % READIES )
28-
2925 def debian_compat (self ):
3026 self .run ("%s/bin/getgcc --modern" % READIES )
31- self .install ("python3-dev clang-format valgrind" )
27+ self .install ("python3-dev valgrind" )
3228
3329 def redhat_compat (self ):
3430 self .install ("redhat-lsb-core" )
31+ self .run ("%s/bin/getepel" % READIES , sudo = True )
32+ self .install ("libatomic" )
33+
3534 self .run ("%s/bin/getgcc --modern" % READIES )
3635
3736 def fedora (self ):
37+ self .install ("libatomic" )
3838 self .run ("%s/bin/getgcc --modern" % READIES )
3939
4040 def macos (self ):
4141 self .install_gnu_utils ()
4242 self .run ("%s/bin/getgcc --modern" % READIES )
43- self .install ("clang-format" )
4443
4544 def linux_last (self ):
4645 self .run ("%s/bin/getclang" % READIES )
4746
4847 def common_last (self ):
49- self .run ("python3 %s/bin/getrmpytools" % READIES )
48+ self .run ("{PYTHON} {READIES}/bin/getcmake --usr" .format (PYTHON = self .python , READIES = READIES ),
49+ sudo = self .os != 'macos' )
50+ self .run ("{PYTHON} {READIES}/bin/getrmpytools --reinstall" .format (PYTHON = self .python , READIES = READIES ))
51+ self .run ("%s/bin/getclang --format" % READIES )
5052 self .pip_install ("-r %s/sbin/requirements.txt" % ROOT )
5153
5254#----------------------------------------------------------------------------------------------
@@ -55,4 +57,4 @@ def common_last(self):
5557parser .add_argument ('-n' , '--nop' , action = "store_true" , help = 'no operation' )
5658args = parser .parse_args ()
5759
58- VecSimSetup (nop = args . nop ).setup ()
60+ VecSimSetup (args ).setup ()
0 commit comments