LWN.net Logo

Proposal: Moratorium on Python language changes

Proposal: Moratorium on Python language changes

Posted Oct 25, 2009 22:13 UTC (Sun) by SEJeff (subscriber, #51588)
In reply to: Proposal: Moratorium on Python language changes by nevyn
Parent article: Proposal: Moratorium on Python language changes

If you're feeling froggy, you can take a F9/F10 python and add this to the
patchlist at the end.

http://www.digitalprognosis.com/opensource/patches/python...
backport-to-db4-4.3.patch

With a little mundging of %_prefix in the spec file, you can have python2.4
and python2.5
installed side by side on production RHEL5 boxen.


(Log in to post comments)

Proposal: Moratorium on Python language changes

Posted Oct 25, 2009 22:34 UTC (Sun) by SEJeff (subscriber, #51588) [Link]

http://tinyurl.com/yjfem6n This might work better as the LWN comment system
ate the URL.

Proposal: Moratorium on Python language changes

Posted Oct 26, 2009 4:20 UTC (Mon) by nevyn (subscriber, #33129) [Link]

There's an open BZ that the python maintainer is looking at, which is trying to put python3.x in Fedora along side python2.6 ... but I don't recommend that, for the same reasons I don't recommend 2.4 + 2.5 in RHEL-5. Doing it via. rpms is likely to cause you pain, I've written up the major bits of pain you'll hit:

http://illiterat.livejournal.com/7660.html

Proposal: Moratorium on Python language changes

Posted Oct 26, 2009 5:50 UTC (Mon) by SEJeff (subscriber, #51588) [Link]

Great blog post btw but I've had this in production (python2.4 and
python2.5) for almost a full year with no problems. We just have our
applications explicitly request python2.4 or python2.5 in the shebang. We
also did something similar for another application using the alternatives
system with %ifarch magic and %preun/%post scripts in the spec. It is
doable. Even managing /usr/bin/python using alternatives is *doable* if you
decide it is the right thing for your use case.

However for general purpose distro with finite resources I agree with you
completely. With production code that is tested in a limited environment
(read %packages --nobase in the ks) you should use whatever makes the most
sense. For my stuff, python2.4 lacks needed features. Each environment is
unique and neither is wrong.

Redhat not making python > 2.4 available in RHEL has caused some
environments to move away from RHEL/CentOS. It is one of the disturbing
reasons you'll see some of the ruby shops or newer django ponies websites
be powered by Ubuntu, Debian, or even Fedora.

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds