Message 60561 - Python tracker (original) (raw)

  1. configure and build python using the --includedir option. For example:

$ configure --prefix=/TANGO/3/rel --includedir=/TANGO/3/rel/inc

  1. Run

$ make install

  1. Notice that the include files are placed in /TANGO/3/rel/include not /TANGO/3/rel/inc.

  2. Verify with

$ python -c 'from distutils.sysconfig import *;print get_python_inc()

  1. The problem is that get_python_inc() hard codes the include file path to use the name "include"

  2. Other programs using distutils will fail since the INSTALL_SCHEMES found in install.py also have the name "include" hard coded.

  3. Suggested fix would be to use --includedir to calculate the include path used by distutils.