[Matplotlib-devel] how not to install backend_gtk{,agg}

Antony Lee antony.lee at berkeley.edu
Wed Dec 27 16:40:41 EST 2017


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
> https://mail.python.org/mailman/listinfo/matplotlib-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-devel/attachments/20171227/da0cc892/attachment.html>


More information about the Matplotlib-devel mailing list