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, 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.
--
components: Cross-Build, Distutils
messages: 377622
nosy: Alex.Willmer, benwolsieffer, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: Get Python include directories from sysconfigdata
type: enhancement
versions: Python 3.10
___
Python tracker
<https://bugs.python.org/issue41880>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com