Python 2.5.2 RedHat Enterprise Linux 5 RPM’s

In order to support the same version of python across all of our servers, I’ve also build Python 2.5.2 RPM’s for RedHat Enterprise Linux 5 (Tikanga).

This build is far more straightforward than the build for RHEL4, as the system X11 libraries link without patching Setup.dist and RHEL5 comes with a supported version of expat so statically linking  the library into the pyexpat module isn’t required.

The SRPM: python25-2.5.2-1.el5.src.rpm

Build command:

rpmbuild –define ‘__python_ver 25′ –define ‘dist .el5′ -ba ~/redhat/SPECS/python.spec

This package will not conflict with the system python package.  Scripts should use #!/usr/bin/env python25 to make sure the proper python is being used.

Tags: , , ,  

1 Comment

  1. iborgofborg

    Hi,

    My compile goes into an endless loop with the following message:-

    Could not find platform independent libraries
    Could not find platform dependent libraries
    Consider setting $PYTHONHOME to [:]
    ‘import site’ failed; use -v for traceback

    Are there any environment settings or packages I need to apply before the compile?

    Thanks

Leave a comment

You must be logged in to post a comment.