Your message dated Wed, 31 Dec 2025 17:03:40 +0000
with message-id <[email protected]>
and subject line Bug#1124229: fixed in dh-python 7.20251231
has caused the Debian Bug report #1124229,
regarding dh-python: pybuild plugin pyproject failed: cannot access local
variable 'c'
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1124229: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1124229
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dh-python
Version: 7.20251227
Severity: important
pybuild in dh-python 7 appears to have introduced a regression,
seen in the fenics-dolfinx build at
https://buildd.debian.org/status/fetch.php?pkg=fenics-dolfinx&arch=amd64&ver=1%3A0.10.0.post5-3&stamp=1766966439&raw=0
Running the pybuild step manually with --verbose, I get extra information:
$ PETSC_DIR=/usr/lib/petsc SLEPC_DIR=/usr/lib/slepc VERBOSE=1
ADIOS2_ALWAYS_USE_MPI=1 PUSIMP_EXPECT_DOLFINX_IN_CWD=1 pybuild --dir=./python
--dest-dir=./debian/tmp-real --system=pyproject --name=dolfinx-real
--test-pytest --verbose
D: pybuild pybuild:578: version: 7.20251227
D: pybuild pybuild:579: ['/usr/bin/pybuild', '--dir=./python',
'--dest-dir=./debian/tmp-real', '--system=pyproject', '--name=dolfinx-real',
'--test-pytest', '--verbose']
D: pybuild pybuild:54: cfg: PybuildOptions(verbose=True, quiet=False,
really_quiet=False, detect_only=False, clean_only=False, configure_only=False,
build_only=False, install_only=False, test_only=False, autopkgtest_only=False,
list_systems=False, print_args=[], before_clean=None, clean_args=None,
after_clean=None, before_configure=None, configure_args=None,
after_configure=None, before_build=None, build_args=None, after_build=None,
before_install=None, install_args=None, after_install=None, before_test=None,
test_args=None, after_test=None, test_nose=False, test_nose2=False,
test_pytest=True, test_tox=False, test_stestr=False, test_unittest=False,
test_custom=False, dir='./python', destdir='./debian/tmp-real',
ext_destdir=None, ext_pattern='\\.so(\\.[^/]*)?$', ext_sub_pattern=None,
ext_sub_repl=None, install_dir='/usr/lib/python{version}/dist-packages',
name='dolfinx-real', system='pyproject', versions=[],
interpreter=['python{version}'], disable=None, custom_tests=True)
D: pybuild tools:296: invoking: /usr/bin/dpkg-architecture
D: pybuild pybuild:174: detected build system: pyproject (certainty: 99%)
D: pybuild pybuild:198: defaulting to all supported Python 3.X versions
E: pybuild pybuild:537: plugin pyproject failed: cannot access local variable
'c' where it is not associated with a value
Traceback (most recent call last):
File "/usr/bin/pybuild", line 521, in main
c.dir = get_option("dir", i, version, cfg.dir)
^
UnboundLocalError: cannot access local variable 'c' where it is not associated
with a value
So the problem is happening at line 521 in pybuild, setting c.dir but
c is evidently not defined.
l.520 has
context.copy()
which we can compare with an earlier l.477
c = context.copy()
(I gather the value set for func at l.477 is not carried forward to l.521)
Should l.520 be patched to set `c =` ?
I marked the bug severity: important but an argument could be made for
serious since it's causing FTBFS.
-- System Information:
Debian Release: forky/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.17.12+deb14-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8),
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dh-python depends on:
ii python3 3.13.9-2
dh-python recommends no packages.
Versions of packages dh-python suggests:
ii dpkg-dev 1.23.3
ii flit 3.12.0-3
ii libdpkg-perl 1.23.3
ii python3-build 1.2.2-4
ii python3-installer 0.7.0+dfsg1-3
ii python3-wheel 0.46.1-2
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: dh-python
Source-Version: 7.20251231
Done: Stefano Rivera <[email protected]>
We believe that the bug you reported is fixed in the latest version of
dh-python, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Stefano Rivera <[email protected]> (supplier of updated dh-python package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 31 Dec 2025 12:15:31 -0400
Source: dh-python
Architecture: source
Version: 7.20251231
Distribution: unstable
Urgency: medium
Maintainer: Piotr Ożarowski <[email protected]>
Changed-By: Stefano Rivera <[email protected]>
Closes: 1124229
Changes:
dh-python (7.20251231) unstable; urgency=medium
.
* Fix a regression in pybuild in 7.20251227. (Closes: #1124229)
Checksums-Sha1:
04cb67d0fa86802a59d68ed7847ca02d84d7641d 1688 dh-python_7.20251231.dsc
7b995ce1529a16c0cd1ff6b06c1313e936c2feea 136568 dh-python_7.20251231.tar.xz
aa9eeb49f9c8324977086ad485a73a61f7e109cc 6400
dh-python_7.20251231_source.buildinfo
Checksums-Sha256:
cdb8dbb595758b7f2e23dc20a3e9d4fd4a4c907400824e0bf39a2754baf9a557 1688
dh-python_7.20251231.dsc
453e00f8ca2a98d86732723de2bd0c9aedf6d2126bc276fe060c17ae0c86452b 136568
dh-python_7.20251231.tar.xz
8d299a16bed6adfe4c9d5c3932fe83399c693494a192bc71cace6c53981e9e3e 6400
dh-python_7.20251231_source.buildinfo
Files:
56425d7d048378801fdc8d789292356a 1688 python optional dh-python_7.20251231.dsc
7cfbb5d300539cedae961ddbacbed9ff 136568 python optional
dh-python_7.20251231.tar.xz
6b248c1bc6ba73f2c2d561204b5e17fa 6400 python optional
dh-python_7.20251231_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iIoEARYKADIWIQTumtb5BSD6EfafSCRHew2wJjpU2AUCaVVTXhQcc3RlZmFub3JA
ZGViaWFuLm9yZwAKCRBHew2wJjpU2NLAAQD76jL/vNa5m9QOvzzi/MPEnJqCTRNa
BO4rD6mykZ7uDwD+MAwMJhD8qNhwbWRXzmSf7WULJZrlnTLWogEUIOpsowI=
=LH8D
-----END PGP SIGNATURE-----
pgpd62zL77R5e.pgp
Description: PGP signature
--- End Message ---