Installing SWIG python bindings for subversion, trac
Posted on 2008-10-02
I have a CentOS 5 machine running Apache 2.2, python 2.5, subversion 1.5.2, and trac 0.11. Originally, the machine came with Python 2.4 and SVN 1.4.2 with the SWIG python bindings:
python2.4 -c "import svn.repos, sys; print svn.repos.__file__; print sys.version"
2.4.3 (#1, Mar 14 2007, 18:51:08)
[GCC 4.1.1 20070105 (Red Hat 4.1.1-52)]
After installing Python 2.5 and SVN 1.5.2, I have lost the SWIG python bindings:
python -c "import svn.repos, sys; print svn.repos.__file__; print sys.version"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named svn.repos
I don't understand this. I installed python 2.5 first, then SVN 1.5.2. Why would SVN put the python bindings into the python 2.4 site-packages area?
Trac requires the SWIG python bindings to work. I need to simple, step-by-step instructions on how to get SWIG python bindings installed into the installed python 2.5 site-packages area for an installed subversion package.
Bonus point for any advice on getting mod_python and mod_dav_svn installed as well. I've actually downloaded and configured mod_python for python 2.5, I just haven't run 'make install' yet because I don't know if it's going to mess with my running apache or not.