mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 00:04:38 +00:00
Compatibility fixes for pip 10
This commit is contained in:
parent
e630093746
commit
5d7bb5a896
@ -36,21 +36,17 @@ def install_bench(args):
|
||||
# secure pip installation
|
||||
if find_executable('pip'):
|
||||
run_os_command({
|
||||
'yum': 'sudo pip install --upgrade setuptools pip',
|
||||
'apt-get': 'sudo pip install --upgrade setuptools pip',
|
||||
'brew': "sudo pip install --upgrade setuptools pip --user"
|
||||
'pip': 'sudo pip install --upgrade setuptools pip'
|
||||
})
|
||||
|
||||
else:
|
||||
if not os.path.exists("get-pip.py"):
|
||||
run_os_command({
|
||||
'apt-get': 'wget https://bootstrap.pypa.io/get-pip.py',
|
||||
'yum': 'wget https://bootstrap.pypa.io/get-pip.py'
|
||||
'wget': 'wget https://bootstrap.pypa.io/get-pip.py'
|
||||
})
|
||||
|
||||
success = run_os_command({
|
||||
'apt-get': 'sudo python get-pip.py',
|
||||
'yum': 'sudo python get-pip.py',
|
||||
'python': 'sudo python get-pip.py --force-reinstall'
|
||||
})
|
||||
|
||||
if success:
|
||||
|
Loading…
Reference in New Issue
Block a user