The rpm sources contain a directory python, which contains
the sources for rpmmodule. This allows python programs to
However, it only works with python 1.5
This was ok for a long time since the development cycle for
python was very slow. However, in the last year or so, there
has already been version 1.6, 2.0 and now 2.1.
The problem is that the paths /usr/lib/python1.5/site-packages
and /usr/include/python1.5 are hardcoded in Makefile.am
These paths should be determined by a configure script.
One way to determine the path for the site-package is something
along the lines of:
for path in sys.path:
if string.find(path,"site-packages")==len(path)-13: print path
(There might be easier ways)
Red Hat ships with Python 1.5.2, all the usual adornments to the build will
we convert to Python-2.0
Meanwhile, AFAIK, the changes are very straightforward, although I have no idea
whether Python-2.0 "works" as I've never looked.