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

Build WASM wheel #91

Merged
merged 6 commits into from
Nov 25, 2022
Merged

Build WASM wheel #91

merged 6 commits into from
Nov 25, 2022

Conversation

kafonek
Copy link
Contributor

@kafonek kafonek commented Nov 12, 2022

closes #90.

I believe Pyodide needs a wheel built with a specific version of Python and specific version of emscripten that match the Pyodide version. For latest Pyodide (0.21.3, released Sep 15 2022), and going back through Pyodide 0.20.0 (Aug 9) that is Python 3.10.2 and emscripten 3.14.1. If we wanted to support earlier versions, we would need to review Pyodide changelog to make a matrix of python/emscripten versions to build the wasm wheel with.

See https://github.com/kafonek/ypy/actions/runs/3452230687/jobs/5761992236 for an example of the wheel being built. I don't understand why that's building a wasm wheel for py310 and py311 there but it doesn't hurt anything 🤷‍♂️ .

@kafonek kafonek marked this pull request as ready for review November 12, 2022 19:53
@kafonek kafonek changed the title prototype wasm wheel build Build WASM wheel Nov 12, 2022
@kafonek
Copy link
Contributor Author

kafonek commented Nov 22, 2022

friendly ping to @davidbrochart or @DerThorsten for review, thanks!

@davidbrochart
Copy link
Collaborator

Sorry for the late answer @kafonek, I think Thorsten is the best person to review this.

@DerThorsten
Copy link

looks good to me, but disclaimer: I know nothing about rust

@davidbrochart
Copy link
Collaborator

Maybe @Waidhoferj wants to have a look too?

Copy link
Collaborator

@Waidhoferj Waidhoferj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I'm excited to see Ypy in the browser!

@Waidhoferj Waidhoferj merged commit 727dd57 into y-crdt:main Nov 25, 2022
@kafonek
Copy link
Contributor Author

kafonek commented Nov 25, 2022

Thanks all, thanks for merging @Waidhoferj . I'm also excited to write up some demo's of y-py on client (pyodide) and server (fastapi). Are you going to bump the version, or want to manually push out the 0.5.4 emscripten wheel to pypi?

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.

Build emscripten wheels
4 participants