On Saturday, July 20, 2013 5:10:38 PM UTC+2, Jonathan Lundell wrote:

> I was bitten by this (other features, not ast) just yesterday. My local 
> environment (OS X) has 2.7; my production environment (RHEL6) had 2.6. 
> Turns out that 2.6 does not support collections.Counter (no surprise there, 
> really). More surprising, it doesn't support the flags argument to 
> re.sub(). Huh? Easy to work around, but still...
>
> When I set up the servers, I started by installing 2.7.latest, but ran 
> into some conflicts that I don't recall the details of right now, and 
> reverted to the system-supplied 2.6. One of these days I'll have to set up 
> a fresh server and figure out what it takes to run 2.7.
>

RHEL and derivatives (CentOS, Scientific Linux) are somewhat touchy when it 
comes to the main OS python version. Python is used for yum and various 
other pieces of key OS components, so upgrading python can be problematic. 
Upgrading to vanilla python also negates the value of long term RHEL 
support (python 2.6.6 on RHEL 6 will be supported until 2023!).

I suggest looking into RHEL Software Collections, which were created to 
solve this exact problem. They allow you to install newer versions of 
software in rpm safely into */opt* and switch between new and old releases. 
This allows your RHEL system applications to continue to run with the old 
version, while new apps can work with the new version.

http://developerblog.redhat.com/2013/06/05/red-hat-software-collections-1-0-beta-now-available/
https://fedorahosted.org/SoftwareCollections/

Software Collections have 3 years of support - this only means that for 3 
years there is a complete ABI/API compatibility guarantee for ie. python 
2.7.3 and 3.3.0, then versions might change.

They seem to have had Django in mind when creating python collections, 
which might be also relevant for web2py. There are further articles about 
this, like:
http://developerblog.redhat.com/2013/02/14/setting-up-django-and-python-2-7-on-red-hat-enterprise-6-the-easy-way/

Since a large part of my work is system administration (mostly RHEL), I 
really welcomed Software Collections... Makes my life easier and my custom 
yum repos much smaller... :)

Regards,
Ales

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to