Skip to content

Switch to upstream Python SWIG bindings#8

Merged
lnagel merged 1 commit intomainfrom
lenno/upstream-swig-bindings
Feb 17, 2026
Merged

Switch to upstream Python SWIG bindings#8
lnagel merged 1 commit intomainfrom
lenno/upstream-swig-bindings

Conversation

@lnagel
Copy link
Member

@lnagel lnagel commented Feb 17, 2026

Summary

  • Point libcdoc submodule to namespace-ee/libcdoc fork (feature/python-swig-bindings branch) which includes Python typemaps directly in libcdoc.i via #ifdef SWIGPYTHON
  • Remove the build-time patch mechanism (patches/libcdoc-python.patch + CMake execute_process)
  • 4 files changed, 3 insertions, 152 deletions

Context

Upstream PR: open-eid/libcdoc#101

Once the upstream PR is merged, the submodule can be pointed back to open-eid/libcdoc.

Test plan

  • uv pip install -e . --no-build-isolation builds successfully
  • 48/48 tests pass (45 passed, 3 skipped)

Python typemaps and template instantiations are now in libcdoc.i
(#ifdef SWIGPYTHON), eliminating the need for the build-time patch.

- Point submodule to namespace-ee/libcdoc (feature/python-swig-bindings)
- Remove patch mechanism from CMakeLists.txt
- Remove patches/libcdoc-python.patch

Upstream PR: open-eid/libcdoc#101
@lnagel lnagel merged commit 5fe19b2 into main Feb 17, 2026
7 checks passed
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