[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Generation of "python" dependencies for public extensions versus python2.3



On Tue, 2006-07-25 at 22:07 +0200, Loïc Minier wrote:
>         Hi,
> 
>  While trying to install the packages from experimental where python
>  is python2.4, I was surprized by the non-upgradability of the
>  python-gmenus package (from gnome-menus): it is built with
>  XS-Python-Version set to current, and ends up with:
>     Depends: libc6 (>= 2.3.6-6), libglib2.0-0 (>= 2.10.0),
>     libgnome-menu2 (>= 2.14.0), python-central (>= 0.5), python (>=
>     2.3), python (<< 2.4)
>  Python-Version: 2.3
> 
>  Since "current" was 2.3 when it was built, it ships files below
>  /usr/lib/python2.3, so why doesn't it end with a python2.3 dependency
>  instead of pure python dependencies?  And why does it "conflict" with a
>  "python" 2.4?

The scripts in /usr/lib/python2.3/site-packages/GMenuSimpleEditor call
plain "python". That's probably causing the dependency.

There's another bug in the gnome-menus package too:

$ dpkg -s gnome-menus | grep Depends
Depends: libc6 (>= 2.3.6-6), libglib2.0-0 (>= 2.10.0), libgnome-menu2,
python (>= 2.3), python (<< 3), python-gmenu (= 2.14.0-3), python-glade2

So gnome-menus claims to work with 2.4.

But in the package /usr/bin/gmenu-simple-editor has:

#!/usr/bin/env python
...
if not "/usr/lib/python2.3/site-packages" in sys.path:
    sys.path.insert (0, "/usr/lib/python2.3/site-packages")

In other words, it will load the 2.3 extension even when it's running on
Python 2.4. That's bad.

Why hasn't this been updated to support multiple versions of Python?
That's what public extensions should do now.
-- 
Joe Wreschnig <piman@sacredchao.net>

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: