Skip to content

docs: fix and modernize week 9 bindings content - #118

Merged
henryiii merged 1 commit into
mainfrom
chore/week09-modernize
Nov 10, 2026
Merged

henryiii merged 1 commit into
mainfrom
chore/week09-modernize

Conversation

@henryiii

Copy link
Copy Markdown
Collaborator

🤖 AI text below 🤖

Review of the week 9 (bindings) material before class.

  • Shared objects / CPython notebooks: fix wrong or stale text (exercise said "double" for a squaring function, "superset" for the limited API, a Python 3.8 file name, an old Numba link). Remove a macOS CPATH line that points to a path that does not exist with Command Line Tools only. The limited API example now targets 3.11.
  • pybind11 notebooks and 04-example: use py::module_ and PYBIND11_OVERRIDE_PURE* in place of the deprecated names, find_package(pybind11 CONFIG REQUIRED), CMake range up to 4.4, scikit-build-core>=0.11, pybind11>=3.
  • 05-embed: pybind11 3.1.0.
  • Rust: square took two arguments and multiplied them; it now matches the chapter. PyO3 0.30.1, maturin 1.16, regenerated CI.yml. The chapter shows the declarative module first, as maturin new now generates it, and no longer needs [tool.maturin].
  • Environment: add cmake to pixi.toml and environment.yml (the Minuit2 notebook calls it directly), raise the pybind11 and scikit-build-core minimums, update pixi.lock.

Checked locally: the four notebooks execute, and the Rust, embed, and 04-example projects build. The limited API exercise produces pysimple.abi3.so.

Fix text errors in the shared objects, CPython, pybind11, and Rust
chapters. Update the examples to pybind11 3, PyO3 0.30, maturin 1.16,
and scikit-build-core 0.11. Add cmake to the environment.

Assisted-by: ClaudeCode:claude-fable-5-2
@henryiii
henryiii force-pushed the chore/week09-modernize branch from e0dc3c9 to d5cf836 Compare November 10, 2026 16:30
@henryiii
henryiii merged commit 3b0cc91 into main Nov 10, 2026
4 checks passed
@henryiii
henryiii deleted the chore/week09-modernize branch November 10, 2026 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant