# Euclidean Distance

Dependency: [nanobind](https://nanobind.readthedocs.io/en/latest/index.html)

Install:

```sh
pip install --user nanobind
```

Compile extension:

```sh
cmake -B build -S .
cmake --build build
```

Create a symlink to / copy of `build/euclidean_distance.cpython-*.so` to bring the `euclidean_distance` module
into the `PYTHONPATH`.

```sh
ln -s build/euclidean_distance*.so .
```

Alternatively add the `build` directory to the
`PYTHONPATH` variable or copy `example.py` into `build`.

```sh
export PYTHONPATH="${PYTHONPATH}:$(pwd)/build"
```

Then run:

```sh
./example.py
```
