[PyQt] A question on recursive %Imports

Shaheed Haque srhaque at theiet.org
Sat Apr 16 16:10:33 BST 2016


Hi,

I'm making steady progress on the attempt to create bindings for PyKF5
[1] and have a question about the recursive use of %Import.

The problem is this: KF5 has many places where SIP module A needs to
%Import SIP module B, but SIP module B has a %Import for A. This
happens because my bindings generator uses the *direct* #includes of a
.h file to infer the %Imports required by each of A and B.

Now, at present, I am working around this by commenting out the
reference in B to A when compiling A. But I need to reverse the
process when compiling B. Thtat would be fine except that I have a
scale problem, since I have nearly 1900 SIP files. I *can* work around
this by extending the automation I have, but was wondering if it might
be possible to enhance SIP to ignore the "%Import X" when compiling X.

Thanks, Shaheed

[1] http://marc.info/?l=kde-bindings&m=146081796906178&w=2


More information about the PyQt mailing list