Installing a second python version

Hi all,

OpenSUSE 11.1 comes with Python 2.6 installed.
I’m using an app which requires the 2.5.2 version.
Python 2.6 has many dependencies, therefore, i think it would be best to install a second version instead of replacing the existing one.
As far as i can see, i have to build this second installation from source. Is there a best way to do this, so that i don’t get any conflicts with the existing version?

Thanks in advance,
Andi

Probably

configure --prefix=/usr/local

should put the older version in /usr/local where it won’t clash. You might want to rename /usr/local/bin/python to /usr/bin/python2.5 so that you have to explicitly name it to get that version.

you could install from the 11.0 repo.

which app?

Thanks!

I’ve used

configure --prefix=/opt/python2.5

and then installed with

make altinstall

This automatically adds the version number (to all files!).
Then you have to add the symlink:

ln -s /opt/python2.5/bin/python2.5 /usr/bin