Comment 9 for bug 301007

Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: [Bug 301007] Re: python-matplotlib: missing package dependency (python-tk)

2009/5/5 John Haitas <email address hidden>:
> I am already working on a patch that moves python-gtk2 etc... to the
> Suggests line...
>
> would that produce the desired results?
>

Dunno... The idea here is that matplolib GUI has many types depending
on different backends.

A KDE user _can_ run the qt gui.
A Gnome user _can_ run the GTK gui.
etc.

At runtime the _available_ backends should be checked and one should
be picked which is curently available, ie. installed.

Due to python / apt nature what is avaiable at install time is
different from what is there at the runtime.

Ideally we should be able to detect that.

I got this idea to use Python-Apt bindings to write a small function
that will check with apt what's installed and pick the pretties one.
I'll work on this, should be easy. Hopefully I will have something
ready (patch, debdiff, PPA) in a few hours.

This will be Debian/Ubuntu solution. Forward looking when PackageKit
will catch on this solution can be ported to use PackageKit to be used
cross-distro.

--
With best regards

Dmitrijs Ledkovs (for short Dima),
Ледков Дмитрий Юрьевич