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