The current theory is that things go wrong because libffi is loaded from both python itself (due to building in the ctypes extension) as well as dynamically through libgirepository.
I extended the test program to use ctypes and gi.repository at the same time, and both work with my local packages which build ctypes as a separate extension again.
The current theory is that things go wrong because libffi is loaded from both python itself (due to building in the ctypes extension) as well as dynamically through libgirepository.
I extended the test program to use ctypes and gi.repository at the same time, and both work with my local packages which build ctypes as a separate extension again.