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
This also affects pybind11 and xtensor-python autopkgtests, because Python reports wrong include path:
$ python3.6 -c "import sysconfig; print(sysconfig .get_path( 'platinclude' ))" include/ python3. 6m
/usr/local/
On Debian it prints the correct path:
$ python3.6 -c "import sysconfig; print(sysconfig .get_path( 'platinclude' ))" python3. 6m
/usr/include/
The build system uses the following code to get Python include path:
https:/ /github. com/pybind/ pybind11/ blob/e763f04689 9ce09bf8a586ea7 5a7d9a9d27e70e4 /tools/ FindPythonLibsN ew.cmake# L76