Pyodide is a Python distribution for the browser and Node.js based on WebAssembly
Go to file
Michael Droettboom e382ada4ce More progress on running CPython tests 2018-04-09 15:53:33 -04:00
benchmark Basics for testing CPython 2018-04-09 10:39:52 -04:00
cpython More progress on running CPython tests 2018-04-09 15:53:33 -04:00
emsdk Use pre-built toolchain 2018-04-02 13:06:36 -04:00
numpy Adding benchmarks 2018-04-06 19:22:24 -04:00
src More progress on running CPython tests 2018-04-09 15:53:33 -04:00
test More progress on running CPython tests 2018-04-09 15:53:33 -04:00
.gitignore Add geckodriver.log to gitignore 2018-03-30 14:09:42 -04:00
.travis.yml Basics for testing CPython 2018-04-09 10:39:52 -04:00
LICENSE Initial commit 2018-02-23 14:21:29 -05:00
Makefile Don't run tests in parallel 2018-04-09 14:24:39 -04:00
Makefile.envs Use pre-built toolchain 2018-04-02 13:06:36 -04:00
README.md Add Travis badge 2018-03-30 14:10:03 -04:00
remove_modules.txt Basics for testing CPython 2018-04-09 10:39:52 -04:00

README.md

Pyodide

Build Status

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.

Make sure the prerequisites for emsdk are installed.

Type make.

(The build downloads and builds a local, patched version of emsdk, then downloads and builds Python and Numpy, and finally builds the pyodide-specific code.)

Testing

  1. Install the following dependencies into the default Python installation:

    pip install pytest selenium

  2. Install geckodriver somewhere on your PATH.

  3. make test