Skip to content

Commit

Permalink
fix: Upgrade pip first (frappe#1120)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
rtdany10 and gavindsouza committed Feb 16, 2021
1 parent e5d4027 commit 17ef5da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.py
Expand Up @@ -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')):
Expand Down

0 comments on commit 17ef5da

Please sign in to comment.