python qt

Elan Ruusamäe glen at delfi.ee
Tue Jan 24 20:30:43 CET 2006


after some discussion with twittner,

> > $ python -c 'import sys; print sys.path'
default paths:
> > ['', '/usr/lib64/python24.zip', '/usr/share/python2.4',
> > '/usr/share/python2.4/plat-linux2', \
> > '/usr/share/python2.4/lib-tk', '/usr/lib64/python2.4/lib-dynload', \
paths defined from site.py[co]:
> > '/usr/lib/python2.4/site-packages', '/usr/share/python2.4/site-packages']

so, my problem was that i had installed both athlon and amd64 packages on 
system (due wanting to run 32-bit openoffice, which needs python-libs)

$ q -qf  /usr/share/python2.4/site.py[co]
python-libs-2.4.2-3.amd64
python-libs-2.4.2-3.athlon
python-libs-2.4.2-3.amd64
python-libs-2.4.2-3.athlon

accroding to search path, moving /usr/share/python2.4/site.py[co] to 
for amd64 package: /usr/lib64/python2.4/lib-dynload/
for athlon package: /usr/lib/python2.4/lib-dynload/
solved my problem.

so there are several problems
1. site.py[co] is in arch independant location, but contains hardcoded path to 
arch dependant location

2. imho it's wrong to package /usr/share/ at all to -libs package. does 
openoffice needs just libpython.so or something more from -libs package?

3. site.py[co] moving to lib-dynload is not perhaps the most appropriate 
place. i don't know where it should be

my suggestions are to move portions from /usr/share from -libs to -common 
(-modules?) package. and py site.py[co] to some path that is first searched 
from arch dependant location.

if taking look on other distros, then the just put all their files to /usr/lib 
or /usr/lib64
- http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/SPECS/python/
- http://cvs.fedora.redhat.com/viewcvs/rpms/python/FC-4/

-- 
glen


More information about the pld-devel-en mailing list