[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: Building against Python development build: Missing pyconfig.h
From:       Barry <barry () barrys-emacs ! org>
Date:       2021-08-01 19:57:50
Message-ID: F587C897-C799-4BE7-BE6A-8EEFC52E4189 () barrys-emacs ! org
[Download RAW message or body]



> On 1 Aug 2021, at 15:25, Florian Bruhin <me@the-compiler.org> wrote:
> 
> Hi,
> 
> I've tried building CPython 3.10 from git, and then building the latest
> PyQt5 snapshot against it.

Did you make install python? I wondering if that is required to have pyconfig.h \
installed into the include folder.

Barry

> 
> That is:
> 
> PyQt-builder 1.11.0.dev2107161131
> PyQt5-sip 12.9.0
> sip 6.2.0.dev2107131757
> PyQt5 5.15.5.dev2107091435
> 
> When I do so, I get:
> 
> gcc [...] -DQT_PLUGIN -I. -I. -I.. -I[...]/cpython/Include \
> -I[...]/qtbase/mkspecs/linux-g++ -o sipQtcmodule.o sipQtcmodule.c In file included \
> from ../sip.h:24, from sipQtcmodule.c:7:
> /home/florian/tmp/cpython/Include/Python.h:8:10: fatal error: pyconfig.h: No such \
> file or directory 8 | #include "pyconfig.h"
> > ^~~~~~~~~~~~
> compilation terminated.
> 
> This seems to fail because the pyconfig.h in a Python built from sources
> is actually in the cpython directory (i.e. the repository root, where
> the 'python' executable is too) and not the Include directory.
> 
> After a "ln -s ../pyconfig.h" in the cpython/Include directory, the
> build succeeded.
> 
> Florian
> 
> -- 
> me@the-compiler.org | https://www.qutebrowser.org 
> https://bruhin.software/ | https://github.com/sponsors/The-Compiler/
> GPG: 916E B0C8 FD55 A072 | https://the-compiler.org/pubkey.asc
> I love long mails! | https://email.is-not-s.ms/


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic