pyodide-build CLI
pyodide-build CLI#
A command line interface (CLI) for pyodide_build
pyodide-build [-h] {serve,mkpkg,create_xbuildenv,install_xbuildenv} ...
pyodide serve#
Start a server with the supplied dist-dir and port.
pyodide serve [-h] [--dist-dir DIST_DIR] [--port PORT]
pyodide serve options#
--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] [--recipe-dir RECIPE_DIR]
package
pyodide mkpkg options#
--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)--recipe-dir
RECIPE_DIR
- Directory to create the recipe in (defaults to PYODIDE_ROOT/packages)
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 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] xbuildenv
pyodide install_xbuildenv options#
--download
- Download xbuild env (default:False
)