[PyQt] A question on recursive %Imports

Shaheed Haque srhaque at theiet.org
Sat Apr 16 19:27:35 BST 2016


I can understand that position. I have some possible workarounds in mind...
On 16 Apr 2016 17:39, "Phil Thompson" <phil at riverbankcomputing.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20160416/1ac35d93/attachment-0001.html>


More information about the PyQt mailing list