messense

Results 481 comments of messense
trafficstars

> It's awesome! Did you tested compiled code? I haven't got the time to tested it, will try it later. Edit: quick update, it's importable on macOS, need to test...

> Changed the folder structure slightly. The current build command is `maturin develop -m src/pyxel-wrapper/Cargo.toml` for your reference. I'll continue trial and error. `maturin develop` should also work, no need...

You need maturin main branch version or v0.13.2.

@kitao I can build it. [pyxel-1.8.0-cp37-abi3-emscripten_3_1_14_wasm32.whl.zip](https://github.com/kitao/pyxel/files/9290168/pyxel-1.8.0-cp37-abi3-emscripten_3_1_14_wasm32.whl.zip) You can install Emscripten on macOS with brew: `brew install emscripten`

Yes, it requires Rust nightly so also I set `RUSTUP_TOOLCHAIN=nightly` env var. Pyodide requires emscripten 3.1.14 (newer version may work but it's not tested), but I don't have that version...

> The next step is to link to pyodide (or other emscripten-version of Python) and render Pyxel's output on web canvas. I haven't looked into this part yet, but there...

BTW, here is an emscripten wheel building example on GitHub Actions: https://github.com/pydantic/pydantic-core/blob/0e2446d70ff68bf05c809b209bee923d6795012d/.github/workflows/ci.yml#L176-L228

I tried the latest code from `maturin` branch locally and encountered `TypeError: getWasmTableEntry(...) is not a function`, reported to pyodide: https://github.com/pyodide/pyodide/issues/2964

On macOS with Emscripten 3.1.17 I get the following error which I think is expected since you need to use 3.1.14 for pyodide 0.21.0. ``` RuntimeError: null function or function...

I have some analysis in https://github.com/pyodide/pyodide/issues/2964#issuecomment-1213693026, I think you might needed to adjust the code for Emscripten support.