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:
>
> =====
> […]
> I: pybuild pybuild:416: mv
> "/build/reproducible-path/towncrier-26.9.0/.pybuild/cpython3_3.14_towncrier/scripts"/*
> "/build/reproducible-path/towncrier-26.9.0/usr/share/towncrier/bin"/.
> /usr/bin/make \
>
> PYTHONPATH="/build/reproducible-path/towncrier-26.9.0/.pybuild/cpython3_3.15_towncrier/build
>
> /build/reproducible-path/towncrier-26.9.0/.pybuild/cpython3_3.14_towncrier/build"
> \
> SPHINXBUILD="python3 -m sphinx" --directory "docs" \
> html man
> […]
> =====
The ‘PYTHONPATH’ variable is not set correctly; it is a concatenation of
two filesystem paths. This is because the ‘debian/rules’ action for
‘override_dh_auto_build’ uses the output from PyBuild for the build
directory, which (because two Python versions are currently installed)
returns *two* directory paths.
=====
[…]
pybuild_computed_build_dir = $(shell \
pybuild --print build_dir \
| cut -d ':' -f 2 \
| sed -e 's/^[[:space:]]*//' \
)
[…]
override_dh_auto_build: ${private_bin_dir}
[…]
dh_auto_build
$(MAKE) \
PYTHONPATH="${pybuild_computed_build_dir}" \
${SPHINX_MAKE_OPTS} \
html man
[…]
=====
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.
--
\ “The difference between religions and cults is determined by |
`\ how much real estate is owned.” —Frank Zappa |
_o__) |
Ben Finney <[email protected]>
signature.asc
Description: PGP signature

