Comment 1 for bug 1771044

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

This also affects pybind11 and xtensor-python autopkgtests, because Python reports wrong include path:

$ python3.6 -c "import sysconfig; print(sysconfig.get_path('platinclude'))"
/usr/local/include/python3.6m

On Debian it prints the correct path:

$ python3.6 -c "import sysconfig; print(sysconfig.get_path('platinclude'))"
/usr/include/python3.6m

The build system uses the following code to get Python include path:

https://github.com/pybind/pybind11/blob/e763f046899ce09bf8a586ea75a7d9a9d27e70e4/tools/FindPythonLibsNew.cmake#L76