Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

python2.4 to 2.5 as default

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
plun
Posts: 3
Joined: 2007-10-20 23:09
Location: Sweden

python2.4 to 2.5 as default

#1 Post by plun »

Hi all

Changed python to version 2.5 as default.

Reference:
http://forums.debian.net/viewtopic.php? ... =python2+5

And this solution works:
http://coderseye.com/2007/setting-up-sa ... erver.html

Code: Select all


Edit /usr/share/python/debian_defaults to this:

[DEFAULT]
# the default python version
default-version = python2.5

# all supported python versions
supported-versions = python2.4, python2.5

# formerly supported python versions
old-versions = python2.3

# unsupported versions, including older versions
unsupported-versions = python2.3

Change the symlink /usr/bin/python to point to python2.5

[root]$ cd /usr/bin
[root]$ rm python
[root]$ ln -s python2.5 python
[root]$ pycentral updatedefault python2.4 python2.5

I cannot see any problem with running python2.5 ?! but it must be reasons
for not using version 2.5 as default ?

I had a couple of new apps which needs python 2.5.

I don't want to spread this solution without better knowledge.

Thanks !
Debian Sid

User avatar
sinical
Posts: 1012
Joined: 2007-03-25 11:52

#2 Post by sinical »

You will be fine, as from the forum link you posted before i am still running it the way i posted and have no python issues. You will find that most of the time if a python program needs a spec version of python it will explictly define if it needs 2.4 or 2.5
Every cloud has a silver lining, except for the mushroom shaped ones, which have a lining of Strontium 90.
---------------------------------------------
umop apisdn

plun
Posts: 3
Joined: 2007-10-20 23:09
Location: Sweden

#3 Post by plun »

sinical wrote:You will be fine, as from the forum link you posted before i am still running it the way i posted and have no python issues. You will find that most of the time if a python program needs a spec version of python it will explictly define if it needs 2.4 or 2.5
Yup, no problem except some work to recompile a few apps with 2.5 site-packages.

I have been running both Feisty and Gutsys all dev releases so ver 2.5 is not something new.

The only issue I have is a strange package trouble where a dev are using a Ubuntu package name. python-gconf.

http://packages.ubuntu.com/gutsy/python/python-gconf

Debian python-gnome
http://packages.debian.org/search?keywo ... ection=all

I am going to ask the dev how its done, just "import gconf" withing the python code.
Debian Sid

Post Reply