[Pymilter] Python 2.4 for CentOS 4.4?

Stuart D. Gathman stuart at bmsi.com
Fri Dec 15 18:47:28 EST 2006


On Fri, 15 Dec 2006, Henry Kwan wrote:

> Thanks to Stuart for pointing me to his pymilter package(s).  I'm looking
> them over now and it seems that they require Python 2.4, which is not
> included with my CentOS 4.4 distribution.  Some googling turned up some
> warnings about installing Python 2.4 because it breaks a lot of apps
> including yum.
> 
> So is there a way to install Python 2.4 just for pymilter while preserving
> Python 2.3 for everything else in the system?

Absolutely.  Get the python2.4-2.4.4c1 SRPM from python.org, and compile
it on CentOS.  I run it on all our CentOS systems.  It installs separately
from the default python, and is invoked as 'python2.4'.

Option 2 - the main 2.4 only feature is the log module.  I used that in
bms.py rather than roll my own to keep log entries from getting tangled.
If you replace that with a naive log() function, you can run with 2.3.

Option 3 - You don't need 2.4 if you are rolling your own milter script using
the Milter module.

Option 4 - You actually *can* install python2.4 as the system default,
once you get all the system python bindings rebuilt - rpm-python, etc.
:-) :-)  At that point, you effectively have a new distro, and have to
keep up with security patches for all the rpms you've touched.  (Lots
of them.)  (Recommended for gurus only.)

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.




More information about the Pymilter mailing list