Message226448
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. |
|
Date |
User |
Action |
Args |
2014-09-05 19:41:35 | lotheac | set | recipients:
+ lotheac, loewis, goeran, morth, christian.heimes |
2014-09-05 19:41:35 | lotheac | set | messageid: <1409946095.48.0.938978408436.issue896330@psf.upfronthosting.co.za> |
2014-09-05 19:41:35 | lotheac | link | issue896330 messages |
2014-09-05 19:41:35 | lotheac | create | |
|