You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by gu...@apache.org on 2023/10/07 08:11:28 UTC
[bigtop] 11/16: add the python2 for openEuler docker slaves (#1155)
This is an automated email from the ASF dual-hosted git repository.
guyuqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit b4082377052c6c9347d5c4bb88006e87e3d092ff
Author: MacChen01 <ch...@163.com>
AuthorDate: Mon Aug 7 17:56:53 2023 +0800
add the python2 for openEuler docker slaves (#1155)
(cherry picked from commit fb343871cd8fbc3acbad06e278ebd4fa4300bb2e)
---
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 5361b402a..4789f5ef4 100644
--- a/bigtop_toolchain/manifests/packages.pp
+++ b/bigtop_toolchain/manifests/packages.pp
@@ -391,4 +391,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"],
+ }
+ }
}