Skip to content

Commit a166926

Browse files
committed
Add text defining terms "Pyodide" and "Emscripten Python"
1 parent 2daef15 commit a166926

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

peps/pep-0776.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,37 @@ Packaging Goals
7272
Emscripten Platform Information
7373
===============================
7474

75+
"Pyodide" vs "Emscripten Python"
76+
--------------------------------
77+
78+
For the sake of this document, we use the term "Emscripten Python" to refer to
79+
the Emscripten Python maintained in the ``python/cpython`` repository, without
80+
any downstream additions. We contrast the features present in Emscripten Python
81+
to the features present in Pyodide.
82+
83+
Pyodide is maintained `on github <https://github.com/pyodide/pyodide>`__ and
84+
distributed via `jsDelivr <https://www.jsdelivr.com/oss-cdn/pyodide>`__, `npm
85+
<https://www.npmjs.com/package/pyodide>`__, and `github releases
86+
<https://github.com/pyodide/pyodide/releases>`__.
87+
88+
Emscripten Python is not distributed, but it is possible to build and test by
89+
executing the following commands from the root of the CPython repository:
90+
91+
.. code-block:: sh
92+
93+
# Install Emscripten
94+
git clone emscripten/emsdk
95+
./emsdk/emsdk install 4.0.5
96+
./emsdk/emsdk activate 4.0.5
97+
source ./emsdk/emsdk_env.sh
98+
99+
# Build
100+
python3.12 ./Tools/wasm/emscripten/ build
101+
102+
# Run the test suite
103+
./cross-build/wasm32-emscripten/build/python/python.sh -m test
104+
105+
75106
Background on Emscripten
76107
------------------------
77108

0 commit comments

Comments
 (0)