2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-29 07:19:05 +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:
DANY ROBERT 2021-02-16 20:17:49 +05:30 committed by GitHub
parent e5d4027f46
commit 17ef5da5ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,8 +170,11 @@ def install_prerequisites():
install_package('git')
install_package('pip3', 'python3-pip')
run_os_command({
'python3': "sudo -H python3 -m pip install --upgrade pip setuptools-rust"
})
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')):