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

Python Wheel for ARM (Raspberry Pi) processor #306

Closed
mishas opened this issue Jun 25, 2017 · 3 comments
Closed

Python Wheel for ARM (Raspberry Pi) processor #306

mishas opened this issue Jun 25, 2017 · 3 comments

Comments

@mishas
Copy link

mishas commented Jun 25, 2017

Looking at the pypi page for the project, there are many precompiled python wheels for different systems, but none for ARM (Raspberry Pi).

I'm working on a project with many Raspberry Pis involved, and it seems like running pip3 install pynacl takes ~20 minutes (!!!).

Interestingly enough, trying to compile it under emulation (qemu) it took even longer (~25 minutes).

It seems like Bug #302 helps a little bit, but not enough :(

Would it be possible to have a prebuilt Python Wheel for ARM as well?

Thanks.

@alex
Copy link
Member

alex commented Jun 25, 2017

We don't have access to any ARM servers, so I don't think is going to be possible.

@alex alex closed this as completed Jun 25, 2017
@mishas
Copy link
Author

mishas commented Jun 25, 2017

Would you consider cross compiling that via Docker?

Here's a simple Dockerfile that would work:

FROM resin/armv7hf-debian

RUN apt-get update \
 && apt-get install -y python3-dev python3-pip libffi-dev build-essential \
 && pip3 install wheel

WORKDIR /root/

CMD ["python3", "./setup.py", "bdist_wheel"]

Put this file in the root directory of the project and run:

> docker build -t pynacl_builder .
> docker run --rm -v `pwd`:/root/ pynacl_builder

Thanks again!

@reaperhulk
Copy link
Member

We couldn't supply ARM based packages even if we wanted to because PyPI only allows uploading of specific "known safe" wheel types. Linux ARM wheels are not among that list (in fact, for linux only manylinux1 is allowed). If you wanted that to change you'd need to engage with the PyPA to begin creating an ARM manylinux spec.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2020
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

3 participants