bashton Business Focused Open Source

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

Tags: , ,

8 Responses to “Python 2.5 RPMs for RHEL 5 / Centos 5”

  1. Felix Schäfer Says:

    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 :-)

  2. sam Says:

    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.

  3. Rizwan Kassim Says:

    Thanks for this!

    Can you release 32bit versions, and/or the specfiles/changes you made to get it to work?

    Cheers,

  4. Rizwan Kassim Says:

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

  5. Robin Bowes Says:

    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.

  6. やっぱり | かもっちの日記 Says:

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

  7. Mike Miller Says:

    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

  8. Rizwan Kassim Says:

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

Leave a Reply


Bashton Linux Consultancy