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

Publish iOS and Android wheels to PyPi #276

Open
marcpabst opened this issue Feb 27, 2025 · 3 comments
Open

Publish iOS and Android wheels to PyPi #276

marcpabst opened this issue Feb 27, 2025 · 3 comments

Comments

@marcpabst
Copy link

Now that PyPi supports iOS and Android wheels (pypi/warehouse#17559), is there a chance you could start publishing those too? As far as I can tell, pymunk should compile for those platforms too. You might also look at cibuildwheel.

@viblo
Copy link
Owner

viblo commented Feb 27, 2025

I think it would be great to have, but Im hesitant to do anything outside of cibuildwheel. On the other hand I see it is hopefully coming to cibuildwheel: pypa/cibuildwheel#1960 and once its in I think it will be easy to add. Note however that Pymunk requires CFFI, meaning CFFI must also have wheels for the target for it to be really useful.

As a sidenote, at least for Android its possible to build/install from the source wheel, so you should already now be able to run it there. On iOS Im unsure of the support. In theory it should be possible, both Pymunk itself and the underlying Chipmunk library should support it, but I have never tested it.

Im a bit curious, do you have some specific use case in mind for pymunk on iOS/Android?

@marcpabst
Copy link
Author

marcpabst commented Feb 27, 2025

That’s exactly what I meant - glad to see you agree! The Beeware maintainer is really pushing for this, so I think cibuildwheel will support it very soon.

I do have a bit of a niche use case. I’m running (or planning to run) child-friendly (mostly vision-related) psychophysics experiments on tablets. I’m currently building a Python-based framework to run them, and we tend to gamify our experiemnts as much as possible to make them fun and engaging. So some simple physics elements that work on iOS would be really nice to have! I have been using a custom Python wrapper for Rapier (which is a great library), but I can’t really justify maintaining that myself.

@viblo
Copy link
Owner

viblo commented Feb 28, 2025

Sounds interesting!

Im not sure if you have considered it (and it might be other things that make this inconvenient or difficult), but already now I publish wasm wheels for pyodide, so Pymunk can run in the browser. This way it works on both Android and iOS today.

Also, I know that Pymunk runs on python-for-android (in case you do a Kivy android application). I havent kept the recipe up to date, but most likely it would be very easy to update. For Kivy on iOS its a different things, in theory it should work if CFFI works, but I have no idea..

Regardless I will keep an eye on cibuildwheel support.

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

No branches or pull requests

2 participants