This is an automated email from the ASF dual-hosted git repository.
guyuqi pushed a commit to branch openEuler-support
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/openEuler-support by this push:
new fb343871c add the python2 for openEuler docker slaves (#1155)
fb343871c is described below
commit fb343871cd8fbc3acbad06e278ebd4fa4300bb2e
Author: MacChen01 <[email protected]>
AuthorDate: Mon Aug 7 17:56:53 2023 +0800
add the python2 for openEuler docker slaves (#1155)
---
bigtop_toolchain/manifests/packages.pp | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/bigtop_toolchain/manifests/packages.pp
b/bigtop_toolchain/manifests/packages.pp
index 74a7f832e..87d6c6d52 100644
--- a/bigtop_toolchain/manifests/packages.pp
+++ b/bigtop_toolchain/manifests/packages.pp
@@ -383,4 +383,26 @@ class bigtop_toolchain::packages {
}
}
}
+
+ # download python 2.7.14 for openEuler docker slaves
+ if $operatingsystem == 'openEuler' {
+ exec { "download_python2.7":
+ cwd => "/usr/src",
+ command => "/usr/bin/wget
https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tgz
--no-check-certificate && /usr/bin/mkdir Python-2.7.14 && /bin/tar -xvzf
Python-2.7.14.tgz -C Python-2.7.14 --strip-components=1 && cd Python-2.7.14",
+ creates => "/usr/src/Python-2.7.14",
+ }
+
+ exec { "install_python2.7":
+ cwd => "/usr/src/Python-2.7.14",
+ command => "/usr/src/Python-2.7.14/configure
--prefix=/usr/local/python2.7.14 --enable-optimizations && /usr/bin/make -j8 &&
/usr/bin/make install -j8",
+ require => [Exec["download_python2.7"]],
+ timeout => 3000
+ }
+
+ exec { "ln python2.7":
+ cwd => "/usr/bin",
+ command => "/usr/bin/ln -s /usr/local/python2.7.14/bin/python2.7
python2.7 && /usr/bin/ln -snf python2.7 python2",
+ require => Exec["install_python2.7"],
+ }
+ }
}