Message377622
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. |
|
Date |
User |
Action |
Args |
2020-09-28 20:15:56 | benwolsieffer | set | recipients:
+ benwolsieffer, eric.araujo, dstufft, Alex.Willmer |
2020-09-28 20:15:56 | benwolsieffer | set | messageid: <1601324156.19.0.410608433996.issue41880@roundup.psfhosted.org> |
2020-09-28 20:15:56 | benwolsieffer | link | issue41880 messages |
2020-09-28 20:15:56 | benwolsieffer | create | |
|