Python 2.5 RPMs for RHEL 5 / Centos 5
Red Hat Enterprise 5 ships with Python 2.4. As it uses this for the majority if its inbuilt scripts, it’s probably not such a good idea to just change it.
With this in mind, I built the following Python 2.5 RPMs, which create the python executable as /usr/bin/python25. This means that where necessary, you can use Python 2.5, but the system scripts will continue to use 2.4. If you do want to use Python 2.5 by default, by all means make /usr/bin/python a symlink to this - but don’t complain to me if ‘bad things’ happen.
64-bit RPMs:
python25-2.5.1-bashton1.x86_64.rpm
python25-devel-2.5.1-bashton1.x86_64.rpm
python25-libs-2.5.1-bashton1.x86_64.rpm
python25-test-2.5.1-bashton1.x86_64.rpm
python25-tools-2.5.1-bashton1.x86_64.rpm
Source RPM:
August 19th, 2008 at 3:45 pm
How do python modules behave with this? Would I have to compile modules I need for py2.5? Anyway, thanks for the rpms, makes it easier for us to install bleeding edge python on RHEL5
August 20th, 2008 at 12:04 pm
Yes, all modules will need to be rebuilt. For RPMs this can be done by editing the SPEC file for the RPM to point to python25 and rebuilding.
September 25th, 2008 at 5:10 am
Thanks for this!
Can you release 32bit versions, and/or the specfiles/changes you made to get it to work?
Cheers,
September 25th, 2008 at 5:23 am
Oh, I just did an rpmbuild –rebuild. Thanks!
October 1st, 2008 at 5:52 pm
Thanks for these - if they work, it will save us building from source from our bleeding edge customers!
However, I got this error when building on CentOS release 5.2 (Final):
I can work round it with:
But, it should probably be fixed.
I also see a load of errors like this:
R.
March 7th, 2009 at 1:06 am
[…] このエントリにあるsrc.rpmを使う。落としてきたら、rpmbuild –rebuild(よくrpm –rebuildって書いてあるエントリを見かけるけど、このオプションがあるのは古いrpmだけ) […]
April 1st, 2009 at 10:50 pm
I was able to build python 2.5 on CentOS 5.2. I didn’t run into any of the errors Robin Bowes ran into. Are there any plans to release a updated version of python 2.5? like Python 2.5.4?
Thanks,
mmiller
May 15th, 2009 at 8:37 pm
I’ve uploaded Python 2.6 for CentOS to
http://www.geekymedia.com/python_26_centos.html