classification
Title: python-config.sh.in INCDIR does not match python version if exec_prefix != prefix
Type: Stage:
Components: Cross-Build Versions: Python 3.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Alex.Willmer, benzea
Priority: normal Keywords:

Created on 2016-04-15 16:00 by benzea, last changed 2016-04-15 16:00 by benzea.

Messages (1)
msg263505 - (view) Author: Benjamin Berg (benzea) Date: 2016-04-15 16:00
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.
History
Date User Action Args
2016-04-15 16:00:47benzeacreate