Lauri Tirkkonen added the comment:
Patch attached to set CONFINCLUDEDIR to --includedir. There's additionally some
hardcoded assumptions in sysconfig and distutils.sysconfig about the include
paths, of which this patch fixes some.
What it doesn't address is sysconfig.get_path with 'include' or 'platinclude'.
There 'include', however, were already broken if python was configured with
--includedir ('platinclude' was correct because it was hardcoded, and
pyconfig.h always installed to the same place). I think those should also be
fixable by getting the correct directories from _sysconfigdata instead of
hardcoding possible 'installation schemes' and trying some de-facto paths based
on those. I suspect this is also a problem for library paths, but this issue is
only concerned with includedir.
I suspect the problem that 'CONFINCLUDEDIR' was trying to solve is separating
platform-dependent headers from platform-independent ones, but it doesn't
actually solve that problem correctly: pyconfig.h does not go in --includedir
AND the hardcoded include path for pyconfig.h doesn't go in "python-config
--includes" output.
----------
keywords: +patch
nosy: +lotheac
Added file: http://bugs.python.org/file36552/pyconfig-includedir.patch
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue896330>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com