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

gh-127111: Emscripten Make web example work again #127113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Nov 22, 2024

  1. pythongh-127111: Make web example work again

    I moved the web example from `Tools/wasm` into `Tools/wasm/emscripten/web_example`.
    I also added a new target `build_emscripten` which is `build_wasm` but also
    builds the web_example. The web_example needs:
    1. python.html, copied
    2. python.worker.mjs copied
    3. python.mjs and python.wasm output from the main linking of the Python interpreter
    4. The webserver that sets COOP and COEP
    5. python3.14.zip
    
    This last is created by the `wasm_assets.py` script, which required a pretty
    small set of changes to work fine for us.
    
    The last thing that should be done is the `python.worker.mjs` script should be
    made independent of the Python version: currently 3.14 is hard coded. I ran
    into trouble doing this, so maybe I can leave it to a followup.
    hoodmane committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    bbb2ab9 View commit details
    Browse the repository at this point in the history