From 4848cddd5184bdeaca909a3cfb4530011dececbd Mon Sep 17 00:00:00 2001 From: Valmik Jangla Date: Tue, 28 Jun 2016 11:23:27 +0530 Subject: [PATCH] [fix] fixed setuptools for ubuntu --- playbooks/install.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/playbooks/install.py b/playbooks/install.py index d9537aa5..f79489b1 100644 --- a/playbooks/install.py +++ b/playbooks/install.py @@ -35,19 +35,15 @@ def install_bench(args): 'yum': 'wget https://bootstrap.pypa.io/get-pip.py' }) - run_os_command({ + success = run_os_command({ 'apt-get': 'sudo python get-pip.py', 'yum': 'sudo python get-pip.py', }) - # In some cases setup_tools are not updated, We will force update it. - success = run_os_command({ - 'python': 'wget https://bootstrap.pypa.io/ez_setup.py' - }) if success: run_os_command({ - 'python': 'sudo python ez_setup.py --user python' + 'pip': "sudo pip install --upgrade setuptools --user python" }) # Restricting ansible version due to following bug in ansible 2.1