Skip to content

FYI: the Mu wheel ignores the Raspberry Pi check #671

Open
@bennuttall

Description

@bennuttall

The wheel uploaded to PyPI was built on an x86 machine so the platform check obviously did not exclude packages not available for Raspberry Pi: https://github.com/mu-editor/mu/blob/master/setup.py#L25:L29

Wheels do not bundle setup.py - this is done at the point of building the wheel, so someone pip installing Mu on a Pi would get the wheel which didn't exclude those packages, and would fail (even if #669 didn't apply).

There's no good solution to this, as making the wheels platform-specific would mean providing one for every non-Pi platform. I have a couple of suggestions but really whether anything changes or not, the process will need documenting so people don't get tripped up by it.

One solution could be that I build a Pi platform wheel and host it on piwheels. Mu developer docs would have to suggest "To pip install on a Pi, run sudo pip3 install mu-editor -i https://www.piwheels.org/simple".

Another is you tell people to build from source when on a Pi, rather than using the wheel. That would be sudo pip3 install mu-editor --no-binary mu-editor.

Anyway, I just wanted to highlight this as an issue for anyone trying to pip install Mu on a Pi. Most users will be using apt, but if anyone wants an unreleased version or wants to develop for it, it will be handy to know what's going on.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions