Repository navigation
Sync python-bindings with the updated tutorial - #945
Merged
realpython-bot merged 1 commit intoNov 16, 2026
Merged
Conversation
…Calling C or C++ From Python Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
realpython-bot
deleted the
maintenance/python-bindings-overview-20261116
branch
November 16, 2026 07:02
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Syncs
python-bindings/with the maintenance update of Python Bindings: Calling C or C++ From Python.Changes
requirements.txt: re-pinned to the article's updateddependenciesfield (cffi 2.1.1, Cython 3.3.1, invoke 3.0.3, pybind11 3.1.0) plus pycparser 3.12. Addedsetuptools==84.2.1, because CFFI'sffi.compile()raises "This CFFI feature requires setuptools on Python >= 3.12" without it (distutilswas removed in 3.12).tasks.py:compile_python_module()now adds`python3-config --includes`before-I ., matching the updated build command shown in the article.Verification
requirements.txt, theninvoke all: ctypes (C and C++), CFFI, PyBind11, and Cython all built and printedreturn val 13.8.invoke build-cffifails, which is why it's pinned.ruff@0.14.1 format --checkandruff@0.14.1 checkpass.Article draft: https://realpython.com/pbjt/blog/post/2651/change/
Maintenance card: https://trello.com/c/GnPLhPAQ
🤖 Generated with Claude Code