2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 00:37:51 +00:00

[fix] fixed setuptools for ubuntu

This commit is contained in:
Valmik Jangla 2016-06-28 11:23:27 +05:30
parent f9e8abc5d3
commit 4848cddd51

View File

@ -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