mirror of https://github.com/pyodide/pyodide.git
1de972ef3f | ||
---|---|---|
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
index.html | ||
main.cpp | ||
pyodide.js |
README.md
Pyodide
This provides an integration layer when running an empscripten-compiled CPython inside a web browser. It provides transparent conversion of objects between Javascript and Python and a sharing of global namespaces. When inside a browser, this means Python has full access to the Web APIs.
Building
These instructions were tested on Linux. OSX should be substantively the same.
-
Build emscripten according to these instructions.
-
Enable the emscripten environment (
source emsdk_env.sh
) -
Build cpython-emscripten:
-
Clone the git repository
-
cd into
3.5.2
, and typemake
.
-
-
Build this project.
[It assumes that
cpython-emscripten
was checked out and built in a directory alongside this project. TODO: Provide a way to specify the cpython-emscripten location]Type
make
.