Metadata-Version: 2.4
Name: hello-ext-demo
Version: 1.0.1
Summary: Minimal pybind11 extension demo package
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# pybind11 extension package demo

This folder is a standalone Python package that builds a pybind11 extension:

- `hello_ext._core` (C++ extension with pybind11)

The `add` function is implemented in C (`hello_c.c`) and `mul` in C++ (`hello_cpp.cpp`).

On macOS/Linux you will get `.so` files; on Windows you will get `.pyd` files.

## Build and install

```bash
python -m venv .venv
source .venv/bin/activate
python -m pip install -U pip build
python -m build
python -m pip install dist/*.whl
```

## Try it

```bash
python -c "import hello_ext; print(hello_ext.add(2, 3)); print(hello_ext.mul(3, 4))"
```

## Build from source (editable)

```bash
python -m pip install -v .
```
