mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
|
||
---|---|---|
.. | ||
.python-version | ||
build.sh | ||
codemp.pyi | ||
pyproject.toml | ||
README.md |
Python bindings
Python allows directly import
ing properly formed shared objects, so the glue can live mostly on the Rust side.
Our Python glue is built with PyO3
.
To get a usable shared object just cargo build --release --features=python
, however preparing a proper python package to be included as dependency requires more steps.
PyPI
codemp
is directly available on PyPI
as codemp
.
Building
To distribute the native extension we can leverage python wheels. It will be necessary to build the relevant wheels with maturin
.
After installing with pip install maturin
, run maturin build
to obtain an import
able package.