Python 2.5.2 RedHat Enterprise Linux 5 RPM’s
Posted in Linux on 10/22/2008 11:55 am by jmccune
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.