Bashton Blog

Aug/08

8

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:

python25-2.5.1-bashton1.src.rpm

RSS Feed

12 Comments for Python 2.5 RPMs for RHEL 5 / Centos 5

Felix Schäfer | August 19, 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 :-)

Author comment by sam | August 20, 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.

Rizwan Kassim | September 25, 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,

Rizwan Kassim | September 25, 2008 at 5:23 am

Oh, I just did an rpmbuild –rebuild. Thanks!

Robin Bowes | October 1, 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):

ERROR   0001: file '/usr/lib/python2.5/lib-dynload/_sqlite3.so' contains a standard rpath '/usr/lib' in [/usr/lib]

I can work round it with:

 QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild --rebuild python25-2.5.1-bashton1.src.rpm

But, it should probably be fixed.

I also see a load of errors like this:

+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
/usr/bin/strip: unable to copy file '/var/tmp/python25-2.5.1-root/usr/lib/libpython2.5.so.1.0' reason: Permission denied
/usr/bin/strip: unable to copy file '/var/tmp/python25-2.5.1-root/usr/lib/python2.5/lib-dynload/_randommodule.so' reason: Permission denied
/usr/bin/strip: unable to copy file '/var/tmp/python25-2.5.1-root/usr/lib/python2.5/lib-dynload/_curses_panel.so' reason: Permission denied

R.

やっぱり | かもっちの日記 | March 7, 2009 at 1:06 am

[...] このエントリにあるsrc.rpmを使う。落としてきたら、rpmbuild –rebuild(よくrpm –rebuildって書いてあるエントリを見かけるけど、このオプションがあるのは古いrpmだけ) [...]

Mike Miller | April 1, 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

Rizwan Kassim | May 15, 2009 at 8:37 pm

I’ve uploaded Python 2.6 for CentOS to
http://www.geekymedia.com/python_26_centos.html

Ben | September 2, 2009 at 4:45 pm

I don’t suppose you’re keeping these RPMs up to date for security and bug fixes, are you?

If not they’re unfortunately kinda useless for us. Damned good idea though.

Author comment by admin | September 29, 2009 at 7:53 am

We’re happy to provide fully supported RPMs to support-contract customers. Please contact us using the details on the website.

RHEL5 / CentOS5 RPMs for Python 2.5 and 2.6 - The Second Order Effect | November 18, 2009 at 9:04 pm

[...] Python 2.51 – Built from Fedora Core 10 (by Bashton) [...]

Install fabric on Redhat/CentOS 5 : Mike Zupan's Random Blog | March 12, 2010 at 3:31 pm

[...] the first thing to do is install python 2.5. I found great rpms here. I am going to mirror the RPMS on my blog just in case. You also need to install tkinter25 which I [...]

Leave a comment!

<<

>>

Find it!

Theme Design by devolux.nh2.me