You are not logged in.

#1 2007-04-10 05:54:58

emphire
Member
From: Canada
Registered: 2007-03-21
Posts: 203

python 2.4->2.5 sys.path

I noticed that after upgrading (an unmodified) python-2.4 to python-2.5 the following was

in the sys.path:

$ python
>>> import sys
>>> print sys.path

gives

[..., '/usr/lib/python2.4/site-packages', ...]

rather than:
/usr/lib/python2.5/site-packages

Offline

#2 2007-04-10 06:32:32

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: python 2.4->2.5 sys.path

Hmm I get

['',
'/usr/bin',
'/usr/lib/python25.zip',
'/usr/lib/python2.5',
'/usr/lib/python2.4/site-packages',
'/usr/lib/python2.5/plat-linux2',
'/usr/lib/python2.5/lib-tk',
'/usr/lib/python2.5/lib-dynload',
'/usr/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/Numeric',
'/opt/gnome/lib/python2.5/site-packages',
'/usr/lib/python2.5/site-packages/gtk-2.0',
'/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
'/usr/lib/python2.5/site-packages/IPython/Extensions',
'/home/andi/.ipython']

Seems to be ok... I have two modules that are still compiled for 2.4 so the path shows up in sys.path...


digiKam developer - www.digikam.org

Offline

#3 2007-04-10 08:58:55

mcover
Member
From: Germany
Registered: 2007-01-25
Posts: 134

Re: python 2.4->2.5 sys.path

Same here.

The only directory left (on my installation) is SCons though. And it is possibly owned by scons (duh tongue). pacman -Qo confirms that.
/usr/lib/python2.4/site-packages/SCons/ is owned by scons 0.96.95-2

Offline

#4 2007-04-10 09:47:31

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: python 2.4->2.5 sys.path

You can try to fix this be rebuilding the scons package from ABS ... I did this today and my two packages are now found in the python2.5 path.

Last edited by TheGrudge (2007-04-10 09:48:33)


digiKam developer - www.digikam.org

Offline

#5 2007-04-10 13:35:53

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: python 2.4->2.5 sys.path

Obvious comment - if the relevant application(s) are working, there is no need to rebuild. We retain the 2.4 path for exactly that reason.

Offline

Board footer

Powered by FluxBB