I'm trying to install the Subversion SWIG Python libraries so that I can use them with Trac. The environment is RHEL5, and for some reason the RedHat repositories for yum are unavailable, so I had to install everything from RPMs.
I've installed all of the dependencies and Subversion itself (1.6.17), no hitch there. However, since RHEL comes with Python 2.4.3 installed, and since it says in several places that upgrading it may cause problems with parts of the OS that rely on it, I've installed Python 2.7 in addition, and not instead.
Now, when I try to install the subversion-python RPM (subversion-python-1.6.17-1.rhel5.x86_64.rpm), it uses the older Python version, and places all of the bindings there.
So the question is - how do I tell it to use the newer Python?
Things I've tried already:
- Replace the
__pythonvariable in/usr/lib/rpm/macros- when I runrpm -E%{__python}I get the correct version, but still no go. - Copy the result directories (
libsvn/*andsvn/*) to the newer version - results in an error:undefined symbol: Py_InitModule4(now reverted).
Any ideas?