2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

Merge pull request #248 from vjFaLk/setuptools-fix

[fix] fixed setuptools for ubuntu
This commit is contained in:
Rushabh Mehta 2016-06-28 11:30:12 +05:30 committed by GitHub
commit f6b03f488c

View File

@ -35,19 +35,15 @@ def install_bench(args):
'yum': 'wget https://bootstrap.pypa.io/get-pip.py' 'yum': 'wget https://bootstrap.pypa.io/get-pip.py'
}) })
run_os_command({ success = run_os_command({
'apt-get': 'sudo python get-pip.py', 'apt-get': 'sudo python get-pip.py',
'yum': '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: if success:
run_os_command({ 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 # Restricting ansible version due to following bug in ansible 2.1