how not to install backend_gtk{,agg}

Hello folks!
in Debian we're trying to phase out GTK2 and all its bindings,
including python-gtk2 and python-glade2

it looks like those modules are only used in backend_gtk{,agg}.py, so
i had a quick look on how to stop installing those backends (we
already provide the Gtk3 Cairo/Agg backends anyway)

Is there any better way than to comment setupext.BackendGtkAgg() and
setupext.BackendGtk() from setup.py (full disclosure, i havent tried
it yet if it actually works)? they seem to just check if the `gtk`
module is importable, but i dont want to rely on that module not being
available (as in this transition phase, it is possible other packages
still depend on it, pulling it in the installed pkgs and thus enable
it implicitly for mpl)

thanks!

I believe that setting setup.cfg accordingly is the way to go.
setup.cfg.template in the source tree includes the relevant instructions.
Antony

2017-12-27 13:30 GMT-08:00 Sandro Tosi <morph at debian.org>:

Hello folks!
in Debian we're trying to phase out GTK2 and all its bindings,
including python-gtk2 and python-glade2

it looks like those modules are only used in backend_gtk{,agg}.py, so
i had a quick look on how to stop installing those backends (we
already provide the Gtk3 Cairo/Agg backends anyway)

Is there any better way than to comment setupext.BackendGtkAgg() and
setupext.BackendGtk() from setup.py (full disclosure, i havent tried
it yet if it actually works)? they seem to just check if the `gtk`
module is importable, but i dont want to rely on that module not being
available (as in this transition phase, it is possible other packages
still depend on it, pulling it in the installed pkgs and thus enable
it implicitly for mpl)

thanks!
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
Matplotlib-devel Info Page

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20171227/da0cc892/attachment.html&gt;

oh yes youre right! i'll set gtk/gtkagg to false in the gui_support
section and see how that goes - thanks!

ยทยทยท

On Wed, Dec 27, 2017 at 4:40 PM, Antony Lee <antony.lee at berkeley.edu> wrote:

I believe that setting setup.cfg accordingly is the way to go.
setup.cfg.template in the source tree includes the relevant instructions.
Antony

2017-12-27 13:30 GMT-08:00 Sandro Tosi <morph at debian.org>:

Hello folks!
in Debian we're trying to phase out GTK2 and all its bindings,
including python-gtk2 and python-glade2

it looks like those modules are only used in backend_gtk{,agg}.py, so
i had a quick look on how to stop installing those backends (we
already provide the Gtk3 Cairo/Agg backends anyway)

Is there any better way than to comment setupext.BackendGtkAgg() and
setupext.BackendGtk() from setup.py (full disclosure, i havent tried
it yet if it actually works)? they seem to just check if the `gtk`
module is importable, but i dont want to rely on that module not being
available (as in this transition phase, it is possible other packages
still depend on it, pulling it in the installed pkgs and thus enable
it implicitly for mpl)

thanks!
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel at python.org
Matplotlib-devel Info Page

--
Sandro "morph" Tosi
My website: http://sandrotosi.me/
Me at Debian: http://wiki.debian.org/SandroTosi
G+: Google Workspace Updates: New community features for Google Chat and an update on Currents