Skip to content

CircuitPython builds pygraphics as a user C module only - #43

Merged
bdbarnett merged 4 commits into
mainfrom
retire-cp-patch-script
Oct 8, 2026
Merged

bdbarnett merged 4 commits into
mainfrom
retire-cp-patch-script

Conversation

@bdbarnett

Copy link
Copy Markdown
Contributor

CircuitPython 11 builds user C modules through USER_C_MODULES, the way MicroPython does, and pygraphics has built that way since #41 (unix, Feather RP2040, Feather M4 Express). The older route, apply_cp_patches.sh copying a shared-bindings version of the module into a CircuitPython 10.x tree and patching its makefiles, goes, with what only it used:

  • apply_cp_patches.sh, circuitpython.mk and src/circuitpython_spike/;
  • the #if CIRCUITPY && !PYGRAPHICS_USER_C_MODULE branch in gfx_bindings_mp.c, which skipped MP_REGISTER_MODULE for that build. The module now registers itself on every build.

The README and installation page give the make ... USER_C_MODULES= command for CircuitPython instead, and drop a link to an aggregator repository that no longer exists.

@bdbarnett
bdbarnett merged commit 2d7ca35 into main Oct 8, 2026
2 checks passed
@bdbarnett
bdbarnett deleted the retire-cp-patch-script branch October 8, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant