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

Add pypy wheel building and publishing to Github actions workflow and Makefile #618

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

LarsDu
Copy link

@LarsDu LarsDu commented Mar 9, 2025

The biggest weakness of pyxel compared to other platforms like PICO-8 is the intrinsic slowness of python compared to languages like Lua which can leverage LuaJit.

The PyPy project leverages JIT, but not all python packages publish pypy wheels. Pyxel is one such project. This is my first pass attempt to alter the CI/CD pipeline to publish pypy wheels for the community to give users the option to leverage the speed of pypy.

Pyxel is a perfect candidate for leveraging pypy since most pyxel games will be completely self-contained and not necessarily need to bring in dependencies from the Cpython ecosystem.

When using package managers like uv switching the python backend to pypy should be as easy as putting [email protected] in the .python-version file.

I was able to run this CI pipeline myself to generate python wheels for pypy here. I successfully tested the pyxel-2.3.10-pp310-pypy310_pp73-win_amd64.whl wheel on a windows PC via uv pip install and it seems to work fine.

@LarsDu LarsDu changed the title First past attempt to add pypy builds Add pypy wheel building and publishing to Github actions workflow and Makefile Mar 9, 2025
@LarsDu LarsDu mentioned this pull request Mar 9, 2025
@LarsDu
Copy link
Author

LarsDu commented Mar 10, 2025

Was able to succesfully build some wheels: https://github.com/LarsDu/pyxel/actions/runs/13755037782

Was able to test out the windows x86 wheel and it works with pypy!

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

Successfully merging this pull request may close these issues.

1 participant