@@ -42,6 +42,10 @@ NEW or CHANGED MINIMUM dependencies since the last major release are **bold**.
4242 * Python >= 3.9 (tested through 3.13).
4343 * pybind11 >= 2.7 (tested through 3.0)
4444 * NumPy (tested through 2.4.4)
45+ * If you enable the optional nanobind (WIP) backend for source/CMake
46+ builds (` OIIO_PYTHON_BINDINGS_BACKEND ` is ` nanobind ` or ` both ` ):
47+ * nanobind discoverable by CMake, or installed in the active Python
48+ environment so ` python -m nanobind --cmake_dir ` works
4549 * If you want support for PNG files:
4650 * libPNG >= 1.6.0 (tested though 1.6.56)
4751 * If you want support for camera "RAW" formats:
@@ -157,6 +161,12 @@ Make wrapper (`make PkgName_ROOT=...`).
157161
158162` USE_PYTHON=0 ` : Omits building the Python bindings.
159163
164+ ` OIIO_PYTHON_BINDINGS_BACKEND=pybind11|nanobind|both ` : Select which Python
165+ binding backend(s) to configure for source/CMake builds. ` both ` keeps the
166+ existing pybind11 module and also builds the nanobind (WIP) module. The
167+ Python packaging path driven by ` pyproject.toml ` still targets the production
168+ pybind11 bindings today.
169+
160170` OIIO_BUILD_TESTS=0 ` : Omits building tests (you probably don't need them
161171unless you are a developer of OIIO or want to verify that your build
162172passes all tests).
@@ -247,6 +257,7 @@ Additionally, a few helpful modifiers alter some build-time options:
247257| make USE_QT=0 ... | Skip anything that needs Qt |
248258| make MYCC=xx MYCXX=yy ... | Use custom compilers |
249259| make USE_PYTHON=0 ... | Don't build the Python binding |
260+ | make OIIO_PYTHON_BINDINGS_BACKEND=both ... | For source/CMake builds, build the existing pybind11 bindings and the nanobind (WIP) module |
250261| make BUILD_SHARED_LIBS=0 | Build static library instead of shared |
251262| make IGNORE_HOMEBREWED_DEPS=1 | Ignore homebrew-managed dependencies |
252263| make LINKSTATIC=1 ... | Link with static external libraries when possible |
0 commit comments