[PyQt] Specifying Qscintilla2 Include Directories When Building with PyQt 4.10
phil at riverbankcomputing.com
Thu Mar 7 14:43:56 GMT 2013
On Thu, 07 Mar 2013 09:17:19 -0500, Scott Kitterman <debian at kitterman.com>
> On Thursday, March 07, 2013 01:38:57 PM Phil Thompson wrote:
>> On Thu, 07 Mar 2013 00:07:10 -0500, Scott Kitterman
>> <debian at kitterman.com>
>> > You may recall that last year I had an issue with the fact that due
>> > Debian/Ubuntu multi-arch implementation, I need to include headers
>> > two
>> > different directories (one common and one arch specific):
>> > With the new Qscintilla2 Python/configure.py I ran into the same
>> > problem
>> > and
>> > solved it similarly. Patch is attached. Is this an appropriate
>> > It
>> > appears to work for both Python and Python3.
>> > Scott K
>> Hmm - I'm regretting accepting the original patch. As this seems to be
>> problem created by Debian's Python build, shouldn't the solution stay
> I could certainly carry it as a distro patch if needed, but my
> to push appropriate things upstream.
> My understanding of the situation is that Python has ~always had two
> include directories, but that they have pointed to the same location.
> Upstream distutils will handle this for that reason (and that's also why
> use sysconfig to get the other directory in my patch). It's only an
> configure/build systems that don't use distutils.
> My assessment is that Debian/Ubuntu are taking advantage of this and
> an assumption that has long held true.
> I think it's better to have the patch upstream so that people who want
> build from source using the system Python on Debian/Ubuntu can do so.
> If you would like, I'll dig up more specifics about this notion of there
> ~always been two sorts of include directories (it was a surprise to me
> when I first heard about it)?
The fact that there are two directories doesn't matter because the code
only ever includes files from one of them. The fact that you have to
include a second, even though you are not explicitly including anything
from it, strikes me as a broken Python installation.
More information about the PyQt