mirror of https://github.com/pyodide/pyodide.git
2ad135ef06 | ||
---|---|---|
cpython | ||
numpy | ||
src | ||
test | ||
.gitignore | ||
LICENSE | ||
Makefile | ||
README.md | ||
remove_modules.txt |
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/install emscripten according to its instructions.
-
Enable the emscripten environment (
source emsdk_env.sh
) -
Build this project.
Type
make
.
Testing
-
Install the following dependencies into the default Python installation:
pip install pytest selenium
-
Install geckodriver somewhere on your
PATH
. -
make test