pyodide-build CLI#

A command line interface (CLI) for pyodide_build

pyodide-build [-h] {serve,mkpkg,create_xbuildenv,install_xbuildenv} ...

pyodide-build options#

  • -h, --help - show this help message and exit

pyodide serve#

Start a server with the supplied dist-dir and port.

pyodide serve [-h] [--dist-dir DIST_DIR] [--port PORT]

pyodide serve options#

  • -h, --help - show this help message and exit

  • --dist-dir DIST_DIR - set the dist directory (default: %(default)s) (default: dist)

  • --port PORT - set the PORT number (default: %(default)s) (default: 8000)

pyodide mkpkg#

Make a new pyodide package. Creates a simple template that will work for most pure Python packages, but will have to be edited for more complex things.

pyodide mkpkg [-h] [--update] [--update-if-not-patched] [--source-format SOURCE_FORMAT]
              [--version VERSION]
              package

pyodide mkpkg positional arguments#

  • package - The package name on PyPI (default: None)

pyodide mkpkg options#

  • -h, --help - show this help message and exit

  • --update - Update existing package (default: False)

  • --update-if-not-patched - Update existing package if it has no patches (default: False)

  • --source-format SOURCE_FORMAT - Which source format is preferred. Options are wheel or sdist. If none is provided, then either a wheel or an sdist will be used. When updating a package, the type will be kept the same if possible. (default: None)

  • --version VERSION - Package version string, e.g. v1.2.1 (defaults to latest stable release)

pyodide create_xbuildenv#

Create xbuild env. Note: this is a private endpoint that should not be used outside of the Pyodide Makefile.

pyodide create_xbuildenv [-h]

pyodide create_xbuildenv options#

  • -h, --help - show this help message and exit

pyodide install_xbuildenv#

Install xbuild env. The installed environment is the same as the one that would result from `PYODIDE_PACKAGES=’scipy’ make` except that it is much faster. The goal is to enable out-of-tree builds for binary packages that depend on numpy or scipy. Note: this is a private endpoint that should not be used outside of the Pyodide Makefile.

pyodide install_xbuildenv [-h] [--download] xbuild_env

pyodide install_xbuildenv positional arguments#

pyodide install_xbuildenv options#

  • -h, --help - show this help message and exit

  • --download - Download xbuild env (default: False)