From 17ef5da5ce3a7061a01c890ae8ca90dcbb6c7957 Mon Sep 17 00:00:00 2001 From: DANY ROBERT Date: Tue, 16 Feb 2021 20:17:49 +0530 Subject: [PATCH] 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 --- install.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.py b/install.py index 71647824..1abd2655 100644 --- a/install.py +++ b/install.py @@ -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')):