[New-bugs-announce] [issue26771] python-config.sh.in INCDIR does not match python version if exec_prefix != prefix

Benjamin Berg report at bugs.python.org
Fri Apr 15 12:00:47 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26771>
_______________________________________


More information about the New-bugs-announce mailing list