Hi,

On Tue, Mar 02, 2010 at 12:45:26PM +0100, Jürgen Strobel wrote:
> In short I wanted the following to work with python2.6:
> 
> ~/% python
> Python 2.5.5 (r255:77872, Feb  1 2010, 19:53:42)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import uno
> >>> uno.getComponentContext()
> pyuno object (com.sun.star.uno.XComponentContext)0x96e9d88{,
> supportedInterfaces={com.sun.star.uno.XComponentContext,com.sun.star.container.XNameContainer,com.sun.star.lang.XTypeProvider,com.sun.star.uno.XWeak,com.sun.star.lang.XComponent}}

I just tried it out of curiosity - and surprinsingly it *does* seem to work
after I created the necessary symlinks in /usr/lib/python2.6/dist-packages:

r...@frodo:/usr/lib$ ls -l python2.5/site-packages/uno*.py 
python2.6/dist-packages/uno*.py
lrwxrwxrwx 1 root root    32 19. Mär 10:27 python2.5/site-packages/unohelper.py 
-> /usr/share/pyshared/unohelper.py
lrwxrwxrwx 1 root root    26 19. Mär 10:27 python2.5/site-packages/uno.py -> 
/usr/share/pyshared/uno.py
lrwxrwxrwx 1 root root    32 20. Mär 00:48 python2.6/dist-packages/unohelper.py 
-> /usr/share/pyshared/unohelper.py
lrwxrwxrwx 1 root root    26 20. Mär 00:48 python2.6/dist-packages/uno.py -> 
/usr/share/pyshared/uno.py

$ python2.6 
Python 2.6.5rc2 (r265rc2:78822, Mar 16 2010, 04:05:00) 
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
>>> uno.getComponentContext()
pyuno object (com.sun.star.uno.XComponentContext)0x23fd820{, 
supportedInterfaces={com.sun.star.uno.XComponentContext,com.sun.star.container.XNameContainer,com.sun.star.lang.XTypeProvider,com.sun.star.uno.XWeak,com.sun.star.lang.XComponent}}
>>> 

Though I fear some effects we didn't think of and of some things which
won't work...

> Maybe you could split the package providing the python loader for inside      
> > OOo and the UNO bindings for system python. Maybe the python guys should    
>   > provide the bindings and a separate UNO client lib for each python 
> version.

Might probably be a good idea. but it should work in one package for now
(though that of course would link (at the moment) against libpython2.5
and have /usr/lib/python2.5 in pythonloader.unorc...

Have a build here with this but unfortunately you use i386 so it won't help
you but as long as the symlinks are there it's what the package would do
anyways (via python-central)

Grüße/Regards,

René
-- 
 .''`.  René Engelhard -- Debian GNU/Linux Developer
 : :' : http://www.debian.org | http://people.debian.org/~rene/
 `. `'  r...@debian.org | GnuPG-Key ID: D03E3E70
   `-   Fingerprint: E12D EA46 7506 70CF A960 801D 0AA0 4571 D03E 3E70



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to