Hi, as subject tells, does anyone know in thich package Python.h is hidden? (Its not python3-devel nor python3-pybind11-devel) Thanks in advance! Axel
On Mon, Dec 21, 2020 at 2:43 PM Axel Braun <axel.braun@gmx.de> wrote:
Hi,
as subject tells, does anyone know in thich package Python.h is hidden? (Its not python3-devel nor python3-pybind11-devel)
It's in python3-devel, but you need to pull in the Cflags from the python3 pkgconfig file so that the include path is correctly set. -- 真実はいつも一つ!/ Always, there's only one truth!
On 12/21/20 8:44 PM, Neal Gompa wrote:
as subject tells, does anyone know in thich package Python.h is hidden? (Its not python3-devel nor python3-pybind11-devel)
It's in python3-devel, but you need to pull in the Cflags from the python3 pkgconfig file so that the include path is correctly set.
Which would be: glaubitz@suse-laptop:~> pkg-config --cflags python3 -I/usr/include/python3.8 glaubitz@suse-laptop:~> Adrian
Thank you all for the answers - that was really quick :-) Am Montag, 21. Dezember 2020, 20:54:16 CET schrieb John Paul Adrian Glaubitz:
On 12/21/20 8:44 PM, Neal Gompa wrote:
as subject tells, does anyone know in thich package Python.h is hidden? (Its not python3-devel nor python3-pybind11-devel)
It's in python3-devel, but you need to pull in the Cflags from the python3 pkgconfig file so that the include path is correctly set.
Which would be:
glaubitz@suse-laptop:~> pkg-config --cflags python3 -I/usr/include/python3.8 glaubitz@suse-laptop:~>
Should this not be handled by BuildRequires: pkgconfig(python3) unfortunately it is not sufficient :-( Best, Axel
On Mon, Dec 21, 2020 at 3:20 PM Axel Braun <axel.braun@gmx.de> wrote:
Thank you all for the answers - that was really quick :-)
Am Montag, 21. Dezember 2020, 20:54:16 CET schrieb John Paul Adrian Glaubitz:
On 12/21/20 8:44 PM, Neal Gompa wrote:
as subject tells, does anyone know in thich package Python.h is hidden? (Its not python3-devel nor python3-pybind11-devel)
It's in python3-devel, but you need to pull in the Cflags from the python3 pkgconfig file so that the include path is correctly set.
Which would be:
glaubitz@suse-laptop:~> pkg-config --cflags python3 -I/usr/include/python3.8 glaubitz@suse-laptop:~>
Should this not be handled by BuildRequires: pkgconfig(python3)
unfortunately it is not sufficient :-(
The build script invoked in %build phase needs to *use* the pkgconfig data. If it doesn't, then it'll fail. -- 真実はいつも一つ!/ Always, there's only one truth!
It is in /usr/include/pythonX.Y/Python.h Tumbleweed: python38-devel, (which provides the python3-devel capability) Leap: python3-devel You most probably want to use `BuildRequires: %{python_module devel}` to get the headers for all Python flavors. Cheers, Ben Am 21.12.20 um 20:43 schrieb Axel Braun:
Hi,
as subject tells, does anyone know in thich package Python.h is hidden? (Its not python3-devel nor python3-pybind11-devel)
Thanks in advance! Axel _______________________________________________ openSUSE Packaging mailing list -- packaging@lists.opensuse.org To unsubscribe, email packaging-leave@lists.opensuse.org List Netiquette: https://en.opensuse.org/openSUSE:Mailing_list_netiquette List Archives: https://lists.opensuse.org/archives/list/packaging@lists.opensuse.org
participants (4)
-
Axel Braun
-
Ben Greiner
-
John Paul Adrian Glaubitz
-
Neal Gompa