Bug#999533: matplotlib: python3-pil.imagetk should be Depends

2021-12-04 Thread Antonio Valentino

Dear Sandro,

On Fri, 3 Dec 2021 11:49:52 -0500 Sandro Tosi  wrote:

control: severity -1 normal

> > This is not a bug in cartopy, matplotlib tries to use ImageTk but the
> > package is not installed.
> >
> > python3-matplotlib only Recommends python3-pil.imagetk, this should be a
> > Depends.
>
> This issue is still present in matplotlib (3.5.0-2) and affects several
> packages. These should not have to add python3-pil.imagetk to their
> build dependencies because matplotlib does not pull it in.

this is done on purpose, so that people can switch backend and remove
the underlying package without causing apt to want to remove also
python3-matplotlib.

All the backend packages are in Recommends for a reason.

If you need a different backend during build, please set the backend
rcparams accordingly during your package build.


could it make sense to use something like the following?

Depends: python3-pil.imagetk | python3-gi | python3-gi-cairo | 
python3-gobject | python3-pyqt5



kind regards
--
Antonio Valentino



Bug#999533: matplotlib: python3-pil.imagetk should be Depends

2021-12-03 Thread Sandro Tosi
control: severity -1 normal

> > This is not a bug in cartopy, matplotlib tries to use ImageTk but the
> > package is not installed.
> >
> > python3-matplotlib only Recommends python3-pil.imagetk, this should be a
> > Depends.
>
> This issue is still present in matplotlib (3.5.0-2) and affects several
> packages. These should not have to add python3-pil.imagetk to their
> build dependencies because matplotlib does not pull it in.

this is done on purpose, so that people can switch backend and remove
the underlying package without causing apt to want to remove also
python3-matplotlib.

All the backend packages are in Recommends for a reason.

If you need a different backend during build, please set the backend
rcparams accordingly during your package build.