This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lotheac
Recipients christian.heimes, goeran, loewis, lotheac, morth
Date 2014-09-05.19:41:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1409946095.48.0.938978408436.issue896330@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-09-05 19:41:35lotheacsetrecipients: + lotheac, loewis, goeran, morth, christian.heimes
2014-09-05 19:41:35lotheacsetmessageid: <1409946095.48.0.938978408436.issue896330@psf.upfronthosting.co.za>
2014-09-05 19:41:35lotheaclinkissue896330 messages
2014-09-05 19:41:35lotheaccreate