🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #2421

Bug#1152327: python3-contourpy: per-interpreter _build_config.py does not work as intended

#2421
From: Stuart Prescott
Date: Wed, 28 Oct 2026 01:10
48 lines
3582 bytes
Package: python3-contourpy
Version: 1.3.3-3
Severity: normal
X-Debbugs-Cc: stuart@debian.org

Dear Maintainer,

In addressing #1152191, the per-interpreter differences of _build_config.py
being unable to be merged into a single dist-packages were solved by keeping
both files:

$ dpkg -L python3-contourpy |grep build
/usr/lib/python3/dist-packages/contourpy/util/_build_config.py
/usr/lib/python3.15/dist-packages/contourpy/util/_build_config.py

where the two files have differing contents that record the interpreters
used etc. (They also capture the build path btw)

$ grep python_version /usr/lib/python3*/dist-packages/contourpy/util/_build_config.py
/usr/lib/python3.15/dist-packages/contourpy/util/_build_config.py:        python_version="3.15",
/usr/lib/python3/dist-packages/contourpy/util/_build_config.py:        python_version="3.14",

While Python does have the ability to use the per-interpreter
dist-packages fallback, that doesn't work for individual files:

$ python3.14 -c'from contourpy.util import _build_config; print(_build_config.build_config()["python_version"])'
3.14

$ python3.15 -c'from contourpy.util import _build_config; print(_build_config.build_config()["python_version"])'
3.14

i.e. Python 3.15 is not getting the data from the module in
python3.15/dist-packages as intended.

It's not clear to me that _build_config.py is actually useful enough to
worry about fixing this properly, and so just removing versions that are
not for the default interpreter would be a simple solution. This file is
"FYI" rather than something like pkgconf for being able to compile other
packages.

If it is considered important enough to keep, then having a common
_build_config.py file that loads the data from a per-interpreter file
such as _build_config_{pyver}.json; this should be easy enough to do with the
existing mesonpy templating, and the resultant set of files would mergeable
into a single dist-packages tree by dh_python3.

regards
Stuart
Technical Details
Message-ID: <NT0kV-8kP4-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Stuart Prescott <stuart@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152327: python3-contourpy: per-interpreter _build_config.py does not work as intended
Date: Wed, 28 Oct 2026 02:10:01 +0100
Message-ID: <NT0kV-8kP4-1@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Wed Oct 28 01:05:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Stuart Prescott <stuart@debian.org>, 1152327@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: stuart@debian.org, team+python@tracker.debian.org
X-Debian-Pr-Message: report 1152327
X-Debian-Pr-Package: python3-contourpy
X-Debian-Pr-Source: contourpy
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999293
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 48
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Wed, 28 Oct 2026 12:02:41 +1100
X-Original-Message-ID: <179314936122.1405974.12683996997993119026.reportbug@trochilus.nanonanonano.net>