Bug 1159242

Summary: hplip fails to build with Python 3.8
Product: [openSUSE] openSUSE Tumbleweed Reporter: Stefan Brüns <stefan.bruens>
Component: PrintingAssignee: Johannes Meixner <jsmeix>
Status: RESOLVED FIXED QA Contact: Johannes Meixner <jsmeix>
Severity: Normal    
Priority: P5 - None    
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
See Also: https://bugzilla.redhat.com/show_bug.cgi?id=1706233
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 1158289    

Description Stefan Brüns 2019-12-15 14:55:22 UTC
configure tries to find Python.h by using

#include <python{py_ver}/Python.h>

Although incorrect this worked up to Python 3.7, but fails with Python 3.8.

The correct way is to use
#include <Python.h>
and add the correct directory to the include directories, i.e.

$> gcc `python3-config --includes` ...
Comment 1 Tomáš Chvátal 2020-01-10 14:07:22 UTC
This was fixed by reporter already and as such the bug can be closed (reviewing open bugs on the py38 meta bug).