Article View: linux.debian.bugs.dist
Article #3388Bug#1152592: towncrier: FTBFS: Sphinx build fails to find ‘towncrier’ distribution metadata (importlib.metadata.PackageNotFoundE...
From: Ben Finney
Date: Fri, 06 Nov 2026 00:10
Date: Fri, 06 Nov 2026 00:10
93 lines
7199 bytes
7199 bytes
--gU9ycbAIOUDYMG7d
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Control: summary -1 0
The Debian packaging attempts to get the current build directory path from
PyBuild, but is instead getting an invalid concatenation of two different
directory paths.
On 06-Nov-2026, Ben Finney wrote:
> The Debian build procedure does set the environment variables correctly:
>=20
> =3D=3D=3D=3D=3D
> [=E2=80=A6]
> I: pybuild pybuild:416: mv "/build/reproducible-path/towncrier-26.9.0/.py=
build/cpython3_3.14_towncrier/scripts"/* "/build/reproducible-path/towncrie=
r-26.9.0/usr/share/towncrier/bin"/.
> /usr/bin/make \
> PYTHONPATH=3D"/build/reproducible-path/towncrier-26.9.0/.pybuild/=
cpython3_3.15_towncrier/build /build/reproducible-path/towncrier-26.9.0/.py=
build/cpython3_3.14_towncrier/build" \
> SPHINXBUILD=3D"python3 -m sphinx" --directory "docs" \
> html man
> [=E2=80=A6]
> =3D=3D=3D=3D=3D
The =E2=80=98PYTHONPATH=E2=80=99 variable is not set correctly; it is a con=
catenation of
two filesystem paths. This is because the =E2=80=98debian/rules=E2=80=99 ac=
tion for
=E2=80=98override_dh_auto_build=E2=80=99 uses the output from PyBuild for t=
he build
directory, which (because two Python versions are currently installed)
returns *two* directory paths.
=3D=3D=3D=3D=3D
[=E2=80=A6]
pybuild_computed_build_dir =3D $(shell \
pybuild --print build_dir \
| cut -d ':' -f 2 \
| sed -e 's/^[[:space:]]*//' \
)
[=E2=80=A6]
override_dh_auto_build: ${private_bin_dir}
[=E2=80=A6]
dh_auto_build
$(MAKE) \
PYTHONPATH=3D"${pybuild_computed_build_dir}" \
${SPHINX_MAKE_OPTS} \
html man
[=E2=80=A6]
=3D=3D=3D=3D=3D
For some reason, `pybuild --print build_dir` is emitting not one filesystem
path for the current build system, but multiple: one for each Python
interpreter currently installed.
I do not know how to convince PyBuild to emit *only* the build directory
path for the *current* Python interpreter for which it is building.
--=20
\ =E2=80=9CThe difference between religions and cults is determined=
by |
`\ how much real estate is owned.=E2=80=9D =E2=80=94=
Frank Zappa |
_o__) |
Ben Finney <bignose@debian.org>
--gU9ycbAIOUDYMG7d
Content-Type: application/pgp-signature; name=signature.asc
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEEXfQ3Ydd+6BMR2Ur+B+hY8vqvVjgFAmrtGZYACgkQB+hY8vqv
VjiDiw/8ChhiGhcnhP84Imguo3/QHGlqwF021HS5UQbGxB67ro2r0ORwsv2OHJYK
o8ti/+HvmZrrp+eUV0JGuHNcRbunOWgn/JTCIyebsv8Q65eiAVSRzsRlwGB0BO0G
woJJyIBDKdWZ73lMHHl5OTkmuer/OuI4zcJTR0jr4ScwjgLoTG84qIP0j4fEhrmV
LEvUj84A0gomjW8hYpMa9wb6LDwg5jBUadpRc6q5TdecC27JCeQYS9DhdLYVndcX
Uvmn60t0vVkWPB2F4Cl76RKbbG7vVOns1L4Fcs17J2GthYBbFmVpiWSh9r+8G4RC
LLDMZBIIsWlGar4lzlbGue/Xz2JTUqpk7KdCsWmOpB7VIdFNVju9IKLMuDjGBjiu
RtvB+psOYJj/Aid7IQIyRHS2ku8y8I8Cs6cQ8eFwS0qe5YGxSaC43gVNfs0PLLAt
AjLq1RAsq3pR6oV9YVS4Aeo6Hga0jf9yNAdP96yIUD7vL19wX/+G7o5rT/Q4aced
aJe3ZEduB4ZGWhrcs4jDVOuPeS1P4eDbshx5Pp73mCby7KVyLAqu/IJwYI8V7lBa
99SYp6BduHXKMqIsSHhoAjPNk5Vrtb+SDNCF81pZiJhUvnBj7/wy0XsulPwbRD7k
PsbAo9SrUrt48fi/906+SbORp+Fhqn5ihQCBLAbXG5lOgSH9oN8=
=tvG2
-----END PGP SIGNATURE-----
--gU9ycbAIOUDYMG7d--
Technical Details
Message-ID:
<NWfGN-a57N-3@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NTSY4-8NRf-87@gated-at.bofh.it> <NWfnr-a4RA-1@gated-at.bofh.it> <NTSY4-8NRf-87@gated-at.bofh.it> <NWfnr-a4RA-1@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.hispagatos.org!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Ben Finney <bignose@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152592: towncrier: FTBFS: Sphinx build fails to find ‘towncrier’ distribution metadata (importlib.metadata.PackageNotFoundError)
Date: Fri, 06 Nov 2026 01:10:02 +0100
Message-ID: <NWfGN-a57N-3@gated-at.bofh.it>
References: <NTSY4-8NRf-87@gated-at.bofh.it> <NWfnr-a4RA-1@gated-at.bofh.it> <NTSY4-8NRf-87@gated-at.bofh.it> <NWfnr-a4RA-1@gated-at.bofh.it>
X-Original-To: 1152592@bugs.debian.org
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Fri Nov 6 00:07:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Ben Finney <bignose@debian.org>, 1152592@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: bignose@debian.org
X-Debian-Pr-Message: followup 1152592
X-Debian-Pr-Package: src:towncrier
X-Debian-Pr-Keywords: sid confirmed ftbfs forky
X-Debian-Pr-Source: towncrier
X-Me-Sender: <xms:mxntavzL4ZkjHwYOCru4b8s57FWsSda54FDkxrkJYYS0Bw5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3OREGCtDDTIbSW1-OXPiMv5Ymp0-JhJbBEA>
<xmx:mxntaiOyVNOMgXErkWrKIp8oZMXFr-9n55Ud1mA--N3zR5mfjJ2EgQ>
<xmx:mxntam_q8n15ZCXRPWu039_TmCDlRJM-7KvXyNAL1PsFX8tH1du66w>
<xmx:mxntavvzmziaYcbX_3gIn_8k-5HSXqtqnzW8WbjiXTGacwUCruDkAcI9T5ZV>
Feedback-ID: i8f8042cb:Fastmail
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;
protocol="application/pgp-signature"; boundary="gU9ycbAIOUDYMG7d"
Content-Disposition: inline
Openpgp: id=B8B24C06AC128405;url="https://www.benfinney.id.au/contact/bfinney-pubkey.asc";preference=sign
X-Openpgp-Public-Key-ID: 0xB8B24C06AC128405
X-Openpgp-Public-Key-Fingerprint: 517C F14B B2F3 98B0 CB35 4855 B8B2 4C06
AC12 8405
X-Openpgp-Public-Key-URL: https://www.benfinney.id.au/contact/bfinney-pubkey.asc
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2000893
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 93
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 6 Nov 2026 11:04:38 +1100
X-Original-Message-ID: <au0ZluQZJ3_PiaXy@benfinney.id.au>
X-Original-References: <E1xMki6-000Uex-0F@paradis.debian.org> <au0R1tVIWMVhfjsH@benfinney.id.au> <E1xMki6-000Uex-0F@paradis.debian.org> <au0R1tVIWMVhfjsH@benfinney.id.au>