2
0
mirror of https://github.com/frappe/bench.git synced 2025-02-03 19:38:24 +00:00

Merge pull request #803 from saurabh6790/mariadb_version

fix: requests package dependancy for centos
This commit is contained in:
Saurabh 2019-05-21 12:57:32 +05:30 committed by GitHub
commit 05e9fb05df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,12 +50,18 @@ def install_bench(args):
}) })
if success: if success:
run_os_command({ dist_name, dist_version = get_distribution_info()
'pip': 'sudo pip install --upgrade setuptools requests cryptography pip' 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({ success = run_os_command({
'pip': "sudo pip install --upgrade cryptography ansible" 'pip': "sudo pip install --upgrade setuptools cryptography ansible pip"
}) })
if not success: if not success: