Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install cryptography from wheel on armhf #6342

Closed
cuu508 opened this issue Sep 30, 2021 · 5 comments
Closed

How to install cryptography from wheel on armhf #6342

cuu508 opened this issue Sep 30, 2021 · 5 comments

Comments

@cuu508
Copy link

cuu508 commented Sep 30, 2021

Is it possible to install cryptography on ARM system from wheel?

My hardware is Raspberry Pi 400, and I'm running my experiments from inside Docker:

docker run -it python:3.9-slim-buster bash

Software versions:

root@3d5804a8efb0:/tmp# uname -a
Linux 3d5804a8efb0 5.10.60-v7l+ #1449 SMP Wed Aug 25 15:00:44 BST 2021 armv7l GNU/Linux
root@3d5804a8efb0:/tmp# python --version
Python 3.9.7
root@3d5804a8efb0:/tmp# pip --version
pip 21.2.4 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

If I just run pip install cryptography it tries to build cryptography from source. Installation fails because rust is missing. I installed rust:

apt-get install build-essential libssl-dev libffi-dev python3-dev cargo

After this, pip install cryptography takes a long time but eventually completes with no errors.

The rust requirement and the long build time could be avoided by using binary wheel. Does cryptography have a wheel that would work on armhf, Linux and python 3.9? If yes, how can I make pip use it? Thanks in advance!

@alex
Copy link
Member

alex commented Sep 30, 2021 via email

@cuu508
Copy link
Author

cuu508 commented Sep 30, 2021

Thanks, OK, so there's no magic combination of pip options to make it work ;-)

Would you consider adding 32bit arm builds to the build system?

@tiran
Copy link
Contributor

tiran commented Sep 30, 2021

The BCM2711 in your Raspberry Pi 400 should support aarch64.

@alexdotgov
Copy link

(Comment from my work account)

We're not going to consider 32-bit ARM at the moment, no: #6286

@alex alex closed this as completed Sep 30, 2021
@cuu508 cuu508 changed the title How to install cryptography from wheel on armv7l How to install cryptography from wheel on armhf Sep 30, 2021
@cuu508
Copy link
Author

cuu508 commented Sep 30, 2021

OK, understood. Thanks for the pointer, and for the quick replies!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

4 participants