From 9fe3a91605fe47a507151c985eefa22c7f16effd Mon Sep 17 00:00:00 2001 From: Saurabh Date: Thu, 16 May 2019 19:25:45 +0530 Subject: [PATCH] fix: requests package dependancy for centos --- playbooks/install.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/playbooks/install.py b/playbooks/install.py index 5cc4afc9..db50160c 100644 --- a/playbooks/install.py +++ b/playbooks/install.py @@ -50,12 +50,18 @@ def install_bench(args): }) if success: - run_os_command({ - 'pip': 'sudo pip install --upgrade setuptools requests cryptography pip' - }) + dist_name, dist_version = get_distribution_info() + if dist_name == 'centos': + run_os_command({ + 'pip': 'sudo pip install --upgrade --ignore-installed requests' + }) + else: + run_os_command({ + 'pip': 'sudo pip install --upgrade requests' + }) success = run_os_command({ - 'pip': "sudo pip install --upgrade cryptography ansible" + 'pip': "sudo pip install --upgrade setuptools cryptography ansible pip" }) if not success: