A colleague here identified a problem while building PyGTK just now,
and asked me about it (the problem being that Python's config.h wasn't
found). Of course, my first thought was that since it worked for me,
he must have set up some paths incorrectly.
After taking a look at it, however, it turned out that I (and
probably a lot of others) have been building Python extensions using
an old version of Python's config.h.
So I look in the installation I keep under my home directory, and
sure enough, config.h was right where I expected it. In fact, it had
been there, peacefully unmolested by new Python installations, for
about two years. The file is simply installed into a new location
(one that makes more sense to Unix wimps like me).
Fixing the problem is not difficult. The aclocal.m4 file contains
the lines:
AC_CACHE_VAL(am_cv_python_includes,
[changequote(,)dnl
am_cv_python_includes="`$PYTHON -c '
import sys
includepy = \"%s/include/python%s\" % (sys.prefix, sys.version[:3])
libpl = \"%s/lib/python%s/config\" % (sys.exec_prefix, sys.version[:3])
print \"-I%s -I%s\" % (includepy, libpl)'`"
changequote([, ])])
The libpl assignment should be changed to read:
libpl = \"%s/include/python%s\" % (sys.exec_prefix, sys.version[:3])
-Fred
--
Fred L. Drake, Jr. <[EMAIL PROTECTED]>
Corporation for National Research Initiatives
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]