mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 08:30:39 +00:00
fix: Upgrade pip first (#1120)
* fix: Upgrade pip first `pip` needs to be upgraded before `cryptography` to avoid version compatibility error. * fix: Add setuptools-rust in upgrade. * fix: Install setuptools-rust * fix: Add setuptools-rust in requirments.txt * fix: Revert unwanted addition to README * fix: Install setuptools-rust beforehand. * fix: Upgrade pip beforehand. * fix: Upgrade pip separately beforehand. * fix: Upgrade setuptools-rust with pip. * chore: Remove unused dependency Co-authored-by: gavin <gavin18d@gmail.com>
This commit is contained in:
parent
e5d4027f46
commit
17ef5da5ce
@ -170,8 +170,11 @@ def install_prerequisites():
|
|||||||
install_package('git')
|
install_package('git')
|
||||||
install_package('pip3', 'python3-pip')
|
install_package('pip3', 'python3-pip')
|
||||||
|
|
||||||
|
run_os_command({
|
||||||
|
'python3': "sudo -H python3 -m pip install --upgrade pip setuptools-rust"
|
||||||
|
})
|
||||||
success = run_os_command({
|
success = run_os_command({
|
||||||
'python3': "sudo -H python3 -m pip install --upgrade setuptools wheel cryptography ansible~=2.8.15 pip"
|
'python3': "sudo -H python3 -m pip install --upgrade setuptools wheel cryptography ansible~=2.8.15"
|
||||||
})
|
})
|
||||||
|
|
||||||
if not (success or shutil.which('ansible')):
|
if not (success or shutil.which('ansible')):
|
||||||
|
Loading…
Reference in New Issue
Block a user