[issue41880] Get Python include directories from sysconfigdata

2020-09-28 Thread Ben Wolsieffer
Change by Ben Wolsieffer : -- keywords: +patch pull_requests: +21469 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22440 ___ Python tracker <https://bugs.python.org/issu

[issue41880] Get Python include directories from sysconfigdata

2020-09-28 Thread Ben Wolsieffer
New submission from Ben Wolsieffer : The distutils.sysconfig.get_python_inc() function finds headers relative to sys.base_prefix or sys.base_exec_prefix. This causes problems when cross-compiling extension modules because Python's headers are not platform independent. In