python-emscripten  File List

Files of check-in [af3ca87849] in the top-level directory

Python compilation scripts and patches to run in the browser.

Build requirements: Emscripten, python3, gcc, make, quilt

Emscripten: download prebuilt binaries (or build from source)

git clone
pushd emsdk/
./emsdk install 2.0.2
./emsdk activate 2.0.2
source emsdk/

Python for the web browser!

cd 3.8/
./ ...
emcc ... -lpython3.8 -s EMULATE_FUNCTION_POINTER_CASTS=1

Web demo:

emrun --serve_after_close t/index.html

Real-world showcase: RenPyWeb.

Emscripten evolves regularly with (minor) breaking changes.
If you use a different version compilation may break.