Skip to content

Commit

Permalink
Upgrade to cryptography==35.0.0 in ansible environment (#810)
Browse files Browse the repository at this point in the history
TinyPilot bootstraps an Ansible environment in order to install TinyPilot in quick-install. We've been stuck on an old version of the cryptography package for a while because it required a Rust environment to install for a while, but now binary builds are available in wheel, so we don't need Rust to build it anymore, and we may as well be on the latest version.

This also lets us get rid of the workaround where we had to explicitly install the wheel package first. Now we can upgrade to a recent version of pip and it will use binary wheels where available instead of building packages locally.
  • Loading branch information
mtlynch authored Nov 11, 2021
1 parent 702ae4e commit 422463d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions quick-install
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,12 @@ pushd "$INSTALLER_DIR"

python3 -m venv venv
. venv/bin/activate
# For some reason, wheel has to be installed before anything else.
pip install wheel==0.34.2
# Upgrade to a recent version of pip so that we can use binary wheels where
# available instead of building the packages locally.
pip install pip==21.3.1
echo 'ansible==2.9.10
cffi==1.14.4
cryptography==3.3.2
cryptography==35.0.0
Jinja2==2.11.2
MarkupSafe==1.1.1
pkg-resources==0.0.0
Expand Down

0 comments on commit 422463d

Please sign in to comment.