classification
Title: Get Python include directories from sysconfigdata
Type: enhancement Stage: resolved
Components: Cross-Build, Distutils Versions: Python 3.10
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Alex.Willmer, benwolsieffer, dstufft, eric.araujo, steve.dower
Priority: normal Keywords: patch

Created on 2020-09-28 20:15 by benwolsieffer, last changed 2021-02-03 18:05 by steve.dower. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 22440 closed benwolsieffer, 2020-09-28 20:25
Messages (2)
msg377622 - (view) Author: Ben Wolsieffer (benwolsieffer) * Date: 2020-09-28 20:15
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, get_python_inc() should use the INCLUDEPY and CONFINCLUDEPY variables from sysconfigdata to find headers. The _PYTHON_SYSCONFIGDATA_NAME environment variable can then be used to make build arch Python load sysconfigdata from host arch Python.
msg386247 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2021-02-03 18:05
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 you believe it still requires a fix, most likely the issue should be re-reported at https://github.com/pypa/setuptools
History
Date User Action Args
2021-02-03 18:05:49steve.dowersetstatus: open -> closed

nosy: + steve.dower
messages: + msg386247

resolution: out of date
stage: patch review -> resolved
2020-09-28 20:25:48benwolsieffersetkeywords: + patch
stage: patch review
pull_requests: + pull_request21469
2020-09-28 20:15:56benwolsieffercreate