8000 Add section on building for Emscripten by hoodmane · Pull Request #1533 · python/devguide · GitHub
[go: up one dir, main page]

Skip to content

Add section on building for Emscripten #1533

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

Merged
merged 8 commits into from
Mar 26, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add info on installing emcc
  • Loading branch information
hoodmane committed Mar 20, 2025
commit 186867ed29a18bb7e1716701f21eb35cc57cddd1
10 changes: 10 additions & 0 deletions getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,16 @@ C compiler just like building for :ref:`Unix <unix-compiling>` as well as:
1. The Emscripten compiler
2. Node.js

To install the Emscripten compiler we recommend:

.. code-block:: sh

# Install Emscripten
git clone emscripten/emsdk
./emsdk/emsdk install 4.0.5
./emsdk/emsdk activate 4.0.5
source ./emsdk/emsdk_env.sh

Building for Emscripten requires doing a cross-build where you have a *build*
Python to help produce a Emscripten build of CPython. This means you build
CPython twice: once to have a version of Python for the build system to use and
48D2 Expand Down
Loading
0