Metadata-Version: 2.1
Name: openmv-runtime
Version: 0.1.0
Summary: OpenMV runtime extension modules for Python
Author: SingTown LLC
Requires-Python: >=3.9
Requires-Dist: numpy>=2.0.2
Requires-Dist: pyserial>=3.5
Description-Content-Type: text/markdown

# Prepare Linux

- Mac OS

```
brew install orbstack
orb
```

- Windows

```
wsl
```

# Prepare Tool

```
sudo apt update
sudo apt install -y git ca-certificates curl build-essential cmake python3-dev
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -fsSL https://claude.ai/install.sh | bash
```

# Develop

```
uv sync -v
uv pip install -e . --no-build-isolation -v
```

# Build wheel

```
curl -fsSL https://get.docker.com | sh && sudo usermod -aG docker $USER && newgrp docker
docker run --privileged --rm tonistiigi/binfmt --install all

export CIBW_PLATFORM=linux
export CIBW_BUILD="cp312-manylinux_aarch64"
uvx cibuildwheel . --archs aarch64
```

The combined wheel is published as the `openmv-runtime` distribution. After
`pip install openmv-runtime`, the runtime modules are still imported as top-level
modules. All platforms provide:

```
import image
import gif
import mjpeg
```

Linux builds also provide the hardware modules:

```
import sensor
import imu
import machine
```

Use OrbStack as the Docker backend for final wheel validation.

## Test

```
uv run pytest
```
