Examples
C/C++ Extension Package (pybind11)
This demo builds a standard Python package with a compiled extension module.
Build the extension package and install the wheel:
cd src/new_year_2026/examples/extension_pkg
python -m pip install -U pip build pybind11 wheel
python -m build
python -m pip install dist/*.whl
Use the extension:
python -c "import hello_ext; print(hello_ext.add(2, 3)); print(hello_ext.mul(3, 4))"