2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-22 20:19:01 +00:00

fix: requests package dependancy for centos

This commit is contained in:
Saurabh 2019-05-16 19:25:45 +05:30
parent 75b0901af4
commit 9fe3a91605

View File

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