[issue41880] Get Python include directories from sysconfigdata

2021-02-03 Thread Steve Dower
Steve Dower added the comment: Distutils is now deprecated (see PEP 632) and all tagged issues are being closed. From now until removal, only release blocking issues will be considered for distutils. If this issue does not relate to distutils, please remove the component and reopen it. If

[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 ___

[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. Instead,