New submission from Benjamin Berg: The script contains:
INCDIR="-I$includedir/python${VERSION}${ABIFLAGS}" PLATINCDIR="-I$includedir/python${VERSION}${ABIFLAGS}" But looking at the sysconfig module we have: 'include': '{installed_base}/include/python{py_version_short}{abiflags}', 'platinclude': '{installed_platbase}/include/python{py_version_short}{abiflags}', which resolves from: _CONFIG_VARS['installed_base'] = _BASE_PREFIX _CONFIG_VARS['platbase'] = _EXEC_PREFIX So one is based on prefix, and the other on exec_prefix. I am actually not sure right now how I could properly reconcile these in the shell script version, but if I simply patch the makefile to install the python version, then everything works fine. ---------- components: Cross-Build messages: 263505 nosy: Alex.Willmer, benzea priority: normal severity: normal status: open title: python-config.sh.in INCDIR does not match python version if exec_prefix != prefix versions: Python 3.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26771> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com