1 unstable release

0.1.0 May 13, 2024

#443 in Math

Download history 332/week @ 2024-05-12 219/week @ 2024-05-19

551 downloads per month
Used in bempp

BSD-3-Clause

640KB
12K SLoC

Build Python Bindings

We use Maturin for Python bindings, and provide an example of installation using the uv package manager for Python below.

In order to enable plotting with MayaVi only Python 3.10.* is currently supported,

  1. Begin by installing Maturin (and pip) in a new virtual environment.
uv venv --python=3.10 && source .venv/bin/activate && uv pip install maturin pip
  1. Use the Maturin CLI to install the Python bindings into this virtual environment.

Note that Maturin must be run from the kifmm crate root, not the workspace root.

# Building bindings in release mode, enable Python binding
cd /path/to/kifmm/crate && maturin develop --release --features python

We provide example usage of the Python API, as well as visualisation, in the python/examples directory.

Note

You must deactivate your virtual environment before building/testing the Rust library with cargo commands as maturin wraps Cargo, and on MacOS and certain other platforms leads to linker errors.

Dependencies

~75MB
~1M SLoC