Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #17493
| Path | csiph.com!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Nilesh Patra <nilesh@debian.org> |
| Newsgroups | linux.debian.maint.python |
| Subject | Re: Matplotlib 3.10.0 for trixie? |
| Date | Wed, 13 May 2026 20:20:01 +0200 |
| Message-ID | <MUmlz-4TeN-5@gated-at.bofh.it> (permalink) |
| References | <KgGNb-haJT-5@gated-at.bofh.it> <KjjKp-1n2p-5@gated-at.bofh.it> <KnmJH-45f5-5@gated-at.bofh.it> <Kp7ZT-5gEo-7@gated-at.bofh.it> <KpDdn-5E29-1@gated-at.bofh.it> <KpDwJ-5Esq-3@gated-at.bofh.it> <KqXMJ-6vHc-5@gated-at.bofh.it> <Kr3S9-6zp4-3@gated-at.bofh.it> <Kr9bb-6Ddb-5@gated-at.bofh.it> <KrsQx-6QxA-1@gated-at.bofh.it> <KrMcy-72We-11@gated-at.bofh.it> <KADWp-cVY3-5@gated-at.bofh.it> <KAIMp-cZyW-5@gated-at.bofh.it> <LJ5JD-7ngm-15@gated-at.bofh.it> <LM0u5-9qUq-1@gated-at.bofh.it> <MT8NH-44hi-13@gated-at.bofh.it> <MUmlz-4TeN-7@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-python-request@lists.debian.org Wed May 13 18:15:17 2026 |
| Old-Return-Path | <nilesh@debian.org> |
| X-Amavis-Spam-Status | No, score=-106.854 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIMWL_WL_HIGH=-0.445, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, GMAIL=1, LDO_WHITELIST=-5, MD5_SHA1_SUM=-1, RCVD_IN_DNSWL_MED=-2.3, REMOVEDOT=3, UNPARSEABLE_RELAY=0.001, USER_IN_DKIM_WELCOMELIST=-0.01, USER_IN_DKIM_WHITELIST=-100] autolearn=ham autolearn_force=no |
| MIME-Version | 1.0 |
| User-Agent | Mozilla Thunderbird |
| Content-Language | en-US |
| Autocrypt | addr=nilesh@debian.org; keydata= xjMEYzwXMxYJKwYBBAHaRw8BAQdAsv3h7PxLm3vMbvdmN1bVnqUGyr3k2CKtdRmMDrX/jSXN IE5pbGVzaCBQYXRyYSA8bmlsZXNoQGRlYmlhbi5vcmc+wpAEExYIADgWIQSglbZu4JAkvuai 8HIqJ5BL1yQ+2gUCYzwXMwIbAwULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRAqJ5BL1yQ+ 2hfuAQDBmH+Sec1bAb/BQNlnNOn7+o69yLi1S7bIQA67WpjCBwD9HoQ3dFMmHbDwu5Mi18z+ 0HoPHLKwQYWJCkOLn9vMFAHOOARjPBczEgorBgEEAZdVAQUBAQdAlnuvB8w06//G6pFqAo98 IrNeskq+iLAbSPZ0Tse9zUIDAQgHwngEGBYIACAWIQSglbZu4JAkvuai8HIqJ5BL1yQ+2gUC YzwXMwIbDAAKCRAqJ5BL1yQ+2mzwAP0SR+JseZKh5BThCb5VijeJD2mCNhZFhvKYmlb8y6nb HwD/d3PmHHDDi6JR4oPGuYK/Z+j9tAiV5q8hGZilIFqfgQU= |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Debian-User | nilesh |
| X-Mailing-List | <debian-python@lists.debian.org> archive/latest/23772 |
| List-ID | <debian-python.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-python/> |
| List-Archive | https://lists.debian.org/msgid-search/c1043ffc-2e45-4e01-97e8-f53d55bba8f8@debian.org |
| Approved | robomod@news.nic.it |
| Lines | 102 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Alexandre Detiste <alexandre.detiste@gmail.com>, Debian Python <debian-python@lists.debian.org> |
| X-Original-Date | Wed, 13 May 2026 23:29:08 +0530 |
| X-Original-Message-ID | <c1043ffc-2e45-4e01-97e8-f53d55bba8f8@debian.org> |
| X-Original-References | <29b74bd1-2181-4bf3-81a6-003cab5df87f@debian.org> <84b7b620-6f18-4f54-a13d-bb38ae0ee839@fsfe.org> <c4c47c60-39ef-4298-b514-3d538f685441@debian.org> <cbae4637-1819-4fb9-873c-8cc21ebb408e@debian.org> <CALDQ5NxbCKEt5HYEviDSrTPkgUsoiEJRwerLrYZuLnBTbJsq7Q@mail.gmail.com> <73CF4D23-2E84-40DB-9EBE-D74E9585ED00@riseup.net> <6d4e26d0-5fbd-4893-9264-1fb255111404@riseup.net> <CADsTwj+8KtpL7mPX_+PynCKG+mCbssNQLygnzQSgUWuc_Epnsg@mail.gmail.com> <418B4F61-1ADC-49EE-9946-9D31623456CD@riseup.net> <CADsTwjKkPoE5bS42_e93RG629B8xW3xiguwE5hY7sU+-5OLNEg@mail.gmail.com> <332450BD-FF2D-4BCC-A313-90809A0DB09D@riseup.net> <ae3dd419-4b01-4801-9a74-7f87179f943d@debian.org> <CALDQ5Ny_oBD+ePM=XEW7qJC4u6moQvtBHjPfo9ZU9ntbrRE89w@mail.gmail.com> <CADsTwjKsjh10O4z6FA4fBgfy+BqDOsJv_sBSGBgqYs3RRyKvoQ@mail.gmail.com> <CALDQ5Nx4dyk9EfC2axwWi3quU1kRqOFJUW=dKJWdbUrSP6dFLA@mail.gmail.com> <52c316fc-7d30-47b1-87dd-2717e9c16447@debian.org> <CALDQ5Nz3QdY9=Jir7pT_qpth2noB=5=4yjVLzkbcJ=6voveMJw@mail.gmail.com> |
| Xref | csiph.com linux.debian.maint.python:17493 |
Show key headers only | View raw
Hi James, On 13/05/26 4:40 pm, James Addison wrote: > Hi Nilesh, > > On Sun, 10 May 2026 at 09:23, Nilesh Patra <nilesh@debian.org> wrote: >> >> On 31/10/25 10:00 pm, James Addison wrote: >>> Thanks, Alexandre, >>> >>> On Thu, Oct 23, 2025, 17:46 Alexandre Detiste <alexandre.detiste@gmail.com> >>> wrote: >>> >>>> Hi, >>>> >>>> Trixie has been released. >>>> We/you can proceed with the plan to remove >>>> the current unpatched/verbatim /etc/matplotlibrc >>>> >>> >>> I'll file a python3-matplotlib bugreport for this cleanup after spending a >>> little time to trace the history of the mpl-data directory referenced in >>> the same patch. >> So, as per the documentation https://matplotlib.org/stable/users/explain/customizing.html#customizing-with-matplotlibrc-files >> >> It searches for 4 places. The 4th place is actually "INSTALL/matplotlib/mpl-data/matplotlibrc, where INSTALL is something like /usr/lib/python3.10/site-packages" >> >> Since upstream kind of supports having matplotlibrc as a global setting, I am having second thoughts if we should just keep >> `/etc/matplotlibrc` as that is the right place for system specific config files to reside. >> >> We are also installing /usr/share/matplotlib/matplotlib.conf/matplotlibrc but I am unsure how useful this is. >> >> Could someone advice? > > I'm not sure what to do about the /etc/matplotlibrc file and whether > to include it in the python-matplotlib-data package. Currently we > ship three identical copies of it: > > $ sha256sum /etc/matplotlibrc > /usr/share/matplotlib/matplotlib.conf/matplotlibrc > /usr/share/matplotlib/mpl-data/matplotlibrc > 097216cf659e1afde4ca842c3010ce3b49b7c85f4cfe92b5122857974d70d1bc While we do have this, I think the code for search paths never output this. I am unsure about this config. > /etc/matplotlibrc > 097216cf659e1afde4ca842c3010ce3b49b7c85f4cfe92b5122857974d70d1bc > /usr/share/matplotlib/matplotlib.conf/matplotlibrc > 097216cf659e1afde4ca842c3010ce3b49b7c85f4cfe92b5122857974d70d1bc > /usr/share/matplotlib/mpl-data/matplotlibrc I dropped /usr/share/matplotlib/matplotlib.conf/matplotlibrc in the last upload. It wasn't referenced anywhere in the code, as far as I could see. The commit adding this dates back to 2013, and the install rule was not changed post that. I believe it was safe to just drop this. > (these are not symlinks -- and for reference, they're from > python-matplotlib-data/3.10.7+dfsg1-3) Yes, I saw that in the last upload. Same template matplotlibrc is installed everywhere. > As a reminder and/or for mailing list readers: the upstream matplotlib > documentation _does not_ mention /etc/matplotlibrc -- the Debian > source package adds a patch that introduces it: > > https://sources.debian.org/src/matplotlib/3.10.7+dfsg1-4/debian/patches/20_matplotlibrc_path_search_fix.patch Right. > I think this means that in practice, some Debian installations may be > using the /etc/matplotlibrc file to customise matplotlib's > configuration, so we should be cautious about removing it. > > As a system operator, I'd probably want to know that the file is > no-longer-used at the same time as a python-matplotlib-data package > update that stops reading from it. > > In other words: I _wouldn't_ want either of these situations: (the > file to be removed silently by a package update, despite the library > still attempting to read from it) OR (the file to continue to exist, > despite the library no longer reading from it). If we want to be extra careful, how about a NEWS item for forky that the conffile will be removed in the next stable release and drop the patch and also the conffile for duke? > If we remove the conffile and update the patch to remove > /etc/matplotlibrc as a config location from the library: would a > Debian host where the /etc/matplotlibrc file has been customised > usually emit a warning/note during package update/purge? update, yes it would. `rm_conffile` would save the file as `conffile.dpkg-bak` and print a note. The documentation is at: https://manpages.debian.org/unstable/dpkg-dev/deb-conffiles.5.en.html and code in the question (for warn) is at: https://git.dpkg.org/cgit/dpkg/dpkg.git/tree/src/dpkg-maintscript-helper.sh#n120 purge, I think no. I tried on my system, and I did not see a warning if I locally modify the conffile (warning unless I missed something basic). But I am unsure how a warning is relevant here, as the sysadmin is trying to get rid of the package and the conffiles. Best, Nilesh
Back to linux.debian.maint.python | Previous | Next — Previous in thread | Find similar
Re: Matplotlib 3.10.0 for trixie? Alexandre Detiste <alexandre.detiste@gmail.com> - 2025-10-23 17:50 +0200
Re: Matplotlib 3.10.0 for trixie? James Addison <jay@jp-hosting.net> - 2025-10-31 17:50 +0100
Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@debian.org> - 2026-05-10 11:40 +0200
Re: Matplotlib 3.10.0 for trixie? Nilesh Patra <nilesh@debian.org> - 2026-05-13 20:20 +0200
csiph-web