Skip to content

Building on Raspberry Pi #227

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

Closed
wrobell opened this issue Feb 14, 2019 · 6 comments
Closed

Building on Raspberry Pi #227

wrobell opened this issue Feb 14, 2019 · 6 comments

Comments

@wrobell
Copy link

wrobell commented Feb 14, 2019

I am using uvloop on Raspberry Pi Zero (many of them ;)). To upgrade to new version, due to memory limitations, one has to go through the following procedure

  1. Stop as many applications as possible to free the memory.
  2. Create 512M swap file (less might be required).
  3. Start installation of uvloop.
  4. Get coffee. ;)

As uvloop provides wheel files for several platforms, IMHO, it would be a great addition to have a wheel file for Raspberry Pi to avoid the above hassle. The target platform would be armv6.

@1st1
Copy link
Member

1st1 commented Feb 15, 2019

Care to make a PR to add it to our CI targets? :)

@jlaine
Copy link
Contributor

jlaine commented Feb 15, 2019

A much better option is to coordinate with https://github.com/bennuttall/piwheels

The piwheels project is awesome, it automatically builds wheels for all packages on pypi, and makes them directly installable in the default raspbian distro.

uvloop up to and including 0.12.0 are available, not sure what's up with 0.12.1:

https://www.piwheels.org/simple/uvloop/

@wrobell
Copy link
Author

wrobell commented Feb 15, 2019

According to https://www.piwheels.org, no Python 2.7, 3.6 and 3.7 at the moment (personally, I am using 3.7).

@jlaine
Copy link
Contributor

jlaine commented Feb 15, 2019

Still my point remains that putting the effort on the piwheels side seems more relevant. Even if uvloop's CI produced wheels for Raspberry Pi, there would be no "right" place to upload them. PyPI would almost certainly not be the right place, see:

pypa/manylinux#84

@1st1
Copy link
Member

1st1 commented Feb 15, 2019

Yeah, it seems that PyPI isn't the right place for hosting wheels for Pi/other ARM archs. This comment by Nathaniel is the key:

Unless someone wants to do lots of abi compatibility testing across different arm distributions, I think the most viable way forward here would be to push forward with the idea of distro-specific wheel tags, so that people could upload e.g "raspbian wheels"?

Please ping piwheels.org. Unfortunately I'm out of capacity to handle that.

@1st1 1st1 closed this as completed Feb 15, 2019
@wrobell
Copy link
Author

wrobell commented Feb 15, 2019

Fair enough. Just would like to point out that for Raspberry Pi, you would need to build for armv6 only (see the pypa/manylinux#84 itself). RPi is probably the most popular ARM platform running Python, so IMHO it is worth considering.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants