This is an automated email from the ASF dual-hosted git repository.
evansye pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bigtop.git
The following commit(s) were added to refs/heads/master by this push:
new b897452 BIGTOP-3214. Install python libraries for Livy (#530)
b897452 is described below
commit b897452ca4ffc32ca7bbd79d231ea447eae8e18b
Author: Aki Tanaka <[email protected]>
AuthorDate: Sun May 26 11:59:05 2019 -0700
BIGTOP-3214. Install python libraries for Livy (#530)
---
bigtop_toolchain/manifests/packages.pp | 34 +++++++++++++++++++++++++++++++---
1 file changed, 31 insertions(+), 3 deletions(-)
diff --git a/bigtop_toolchain/manifests/packages.pp
b/bigtop_toolchain/manifests/packages.pp
index d526fb9..7882b50 100644
--- a/bigtop_toolchain/manifests/packages.pp
+++ b/bigtop_toolchain/manifests/packages.pp
@@ -36,7 +36,7 @@ class bigtop_toolchain::packages {
"cppunit-devel",
"openssl-devel",
"python-devel",
- "python-setuptools",
+ "python2-pip",
"libxml2-devel",
"libxslt-devel",
"cyrus-sasl-devel",
@@ -87,7 +87,7 @@ class bigtop_toolchain::packages {
"pkg-config",
"gmp-devel",
"python-devel",
- "python-setuptools",
+ "python-pip",
"libxml2-devel",
"libxslt-devel",
"cyrus-sasl-devel",
@@ -133,6 +133,7 @@ class bigtop_toolchain::packages {
"lzo-devel",
"fuse-devel",
"openssl-devel",
+ "python27-pip",
"rpm-build",
"system-rpm-config",
"fuse-libs",
@@ -177,7 +178,6 @@ class bigtop_toolchain::packages {
"libldap2-dev",
"libsasl2-dev",
"libmariadbd-dev",
- "python-setuptools",
"libkrb5-dev",
"asciidoc",
"libyaml-dev",
@@ -195,6 +195,7 @@ class bigtop_toolchain::packages {
"bison",
"flex",
"python-dev",
+ "python-pip",
"libffi-dev"
]
file { '/etc/apt/apt.conf.d/01retries':
@@ -220,4 +221,31 @@ class bigtop_toolchain::packages {
ensure => installed
}
}
+
+ # Install Python packages using pip
+ case $operatingsystem{
+ /(?i:(centos|fedora))/: {
+ $pip = 'python2-pip'
+ } /(?i:(SLES|opensuse))/: {
+ $pip = 'python-pip'
+ } /Amazon/: {
+ $pip = 'python27-pip'
+ } /(Ubuntu|Debian)/: {
+ $pip = 'python-pip'
+ }
+ }
+ file { '/usr/bin/pip-python':
+ ensure => 'link',
+ target => '/usr/bin/pip',
+ }
+ package { 'setuptools':
+ ensure => 'latest',
+ provider => 'pip',
+ require => [ Package[$pip], File['/usr/bin/pip-python'] ]
+ }
+ package { 'flake8':
+ ensure => 'installed',
+ provider => 'pip',
+ require => [ Package[$pip], File['/usr/bin/pip-python'] ]
+ }
}