Comment 9 for bug 499592

Revision history for this message
Steven Sproat (sproaty) wrote :

Hi,

Still no luck here. It may be because I had to edit my configure file:

{ $as_echo "$as_me:$LINENO: checking for headers required to compile python extensions" >&5
$as_echo_n "checking for headers required to compile python extensions... " >&6; }
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
if test "$py_prefix" != "$py_exec_prefix"; then
  PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
fi

I had to change the includes directory to:

 PYTHON_INCLUDES="-I${py_prefix}/include"
 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include"

because they were searching the wrong places. No matter how much I play with the PYTHON_INCLUDES path in the config.status file, it just doesn't seem to work. Pointing to the right directory with C:\\python26/include gives me python.h not found, and pointing to /c/python26/include tells me about glib.h not being found