]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-137025: Include ``python.worker.mjs`` in the Emscripten Web Example (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 Oct 2025 18:15:33 +0000 (20:15 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Oct 2025 18:15:33 +0000 (19:15 +0100)
gh-137025: Include ``python.worker.mjs`` in the Emscripten Web Example (GH-137236)
(cherry picked from commit d5191ba99b8f7723cbdb9b7a07ef8a3eef6524c1)

Co-authored-by: adam j hartz <hz@mit.edu>
Makefile.pre.in

index ba039794c88b01456954c2fd6233ff9f1ba3dd17..ca536d32a611670cdc0c3bc42f9a27fc8f16026d 100644 (file)
@@ -1109,6 +1109,10 @@ web_example/index.html: $(WEBEX_DIR)/index.html
        @mkdir -p web_example
        @cp $< $@
 
+web_example/python.worker.mjs: $(WEBEX_DIR)/python.worker.mjs
+       @mkdir -p web_example
+       @cp $< $@
+
 web_example/server.py: $(WEBEX_DIR)/server.py
        @mkdir -p web_example
        @cp $< $@
@@ -1126,7 +1130,7 @@ web_example/python.mjs web_example/python.wasm: $(BUILDPYTHON)
        cp python.wasm web_example/python.wasm
 
 .PHONY: web_example
-web_example: web_example/python.mjs web_example/index.html web_example/server.py web_example/$(ZIP_STDLIB)
+web_example: web_example/python.mjs web_example/python.worker.mjs web_example/index.html web_example/server.py web_example/$(ZIP_STDLIB)
 
 WEBEX2=web_example_pyrepl_jspi
 WEBEX2_DIR=$(EMSCRIPTEN_DIR)/$(WEBEX2)/