5
5
import argparse
6
6
7
7
HERE = os .path .abspath (os .path .dirname (__file__ ))
8
+ READIES = os .path .join (HERE , "readies" )
8
9
ROOT = os .path .abspath (os .path .join (HERE , ".." ))
9
- sys .path .insert (0 , os . path . join ( HERE , "readies" ) )
10
+ sys .path .insert (0 , READIES )
10
11
import paella
11
12
12
13
#----------------------------------------------------------------------------------------------
@@ -19,9 +20,6 @@ def common_first(self):
19
20
self .install_downloaders ()
20
21
self .setup_pip ()
21
22
self .pip_install ("wheel virtualenv" )
22
- # if self.osnick == 'xenial':
23
- # self.pip_install("setuptools --upgrade")
24
- # self.pip_install("-IU --force-reinstall setuptools")
25
23
26
24
if self .os == 'linux' :
27
25
self .install ("ca-certificates" )
@@ -32,17 +30,6 @@ def debian_compat(self):
32
30
self .install ("gawk" )
33
31
self .install ("build-essential" )
34
32
self .install ("libssl-dev" )
35
- self .run ("""
36
- apt remove -y --purge --auto-remove cmake
37
- version=3.19
38
- build=0
39
- mkdir ~/temp
40
- cd ~/temp
41
- wget https://cmake.org/files/v$version/cmake-$version.$build-Linux-x86_64.sh
42
- mkdir /opt/cmake
43
- sh cmake-$version.$build-Linux-x86_64.sh --prefix=/opt/cmake --skip-license
44
- ln -s /opt/cmake/bin/cmake /usr/local/bin/cmake
45
- """ )
46
33
self .install ("clang-format" )
47
34
self .install ("python3-regex" )
48
35
self .install ("python3-psutil python3-networkx python3-numpy" ) # python3-skimage
@@ -53,22 +40,11 @@ def redhat_compat(self):
53
40
self .run ("%s/readies/bin/enable-utf8" % HERE )
54
41
55
42
self .group_install ("'Development Tools'" )
56
-
57
- self .install ("centos-release-scl" )
58
- self .install ("devtoolset-8" )
59
- self .run ("cp /opt/rh/devtoolset-8/enable /etc/profile.d/scl-devtoolset-8.sh" )
60
-
43
+ self .run ("%s/bin/getgcc --modern" % READIES )
61
44
self .install ("llvm-toolset-7" )
62
45
63
- paella .mkdir_p ("%s/profile.d" % ROOT )
64
- self .run ("cp /opt/rh/devtoolset-8/enable %s/profile.d/scl-devtoolset-8.sh" % ROOT )
65
-
66
- self .run ("""
67
- dir=$(mktemp -d /tmp/tar.XXXXXX)
68
- (cd $dir; wget -q -O tar.tgz http://redismodules.s3.amazonaws.com/gnu/gnu-tar-1.32-x64-centos7.tgz; tar -xzf tar.tgz -C /; )
69
- rm -rf $dir
70
- """ )
71
-
46
+ if self .arch == 'x64' :
47
+ self .install_linux_gnu_tar ()
72
48
73
49
if not self .dist == "amzn" :
74
50
self .install ("epel-release" )
@@ -79,30 +55,23 @@ def redhat_compat(self):
79
55
self .install ("python3-devel" )
80
56
self .pip_install ("psutil" )
81
57
82
- self .install ("cmake3" )
83
- self .run ("ln -sf `command -v cmake3` /usr/local/bin/cmake" )
84
-
85
58
self .install_git_lfs_on_linux ()
86
59
87
60
def fedora (self ):
88
61
self .group_install ("'Development Tools'" )
89
- self .install ("cmake" )
90
- self .run ("ln -sf `command -v cmake3` /usr/local/bin/cmake" )
91
62
self .install ("python3 python3-psutil python3-networkx" )
92
63
self .install ("clang" )
93
64
self .install_git_lfs_on_linux ()
94
65
95
66
def macos (self ):
96
- if sh ('xcode-select -p' ) == '' :
97
- fatal ("Xcode tools are not installed. Please run xcode-select --install." )
98
-
99
67
self .install_gnu_utils ()
100
- self .install ("cmake" )
101
68
self .install ("git-lfs" )
102
69
self .install ("redis" )
103
70
self .install ("clang-format" )
104
71
105
72
def common_last (self ):
73
+ self .run ("%s/bin/getcmake" % READIES )
74
+
106
75
self .run ("python3 -m pip uninstall -y ramp-packer RLTest || true" )
107
76
# redis-py-cluster should be installed from git due to redis-py dependency
108
77
self .pip_install ("--no-cache-dir git+https://github.com/Grokzen/redis-py-cluster.git@master" )
0 commit comments