Matthias Klose <d...@debian.org> added the comment:

Some distros have two include directories in the path,

 /usr/include
 /usr/include/<multiarch>

The latter for architecture specific files, so on these distributions the 
python config file is installed there.  Then you'll need to have both include 
directories.  Unfortunately most third party only expect one, and because the 
config file is installed in a subdir, then fail to build.

So the solution is to provide a rather arch specific ugly wrapper file to get 
away with one include directory.

https://salsa.debian.org/cpython-team/python3/blob/master/debian/multiarch.h.in

Also done on other distros like
https://src.fedoraproject.org/rpms/gmp/blob/master/f/gmp.h

I still think the two directories should be emitted, maybe check in the script 
if they are different.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue38620>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to