[PyQt] A question on recursive %Imports
Phil Thompson
phil at riverbankcomputing.com
Sat Apr 16 17:39:43 BST 2016
On 16 Apr 2016, at 4:10 pm, Shaheed Haque <srhaque at theiet.org> wrote:
>
> 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.
I don't see that as an enhancement.
Phil
More information about the PyQt
mailing list