Hi,
I need some help with a package that switched to using pyproject.toml
only. The package is asdf-astropy, and the problem I have that it does
not package all Python files recursively: for example astropy_asdf.io
files are missing (as seen in unstable now).
https://tracker.debian.org/pkg/asdf-astropy https://salsa.debian.org/debian-astro-team/asdf-astropy
What I do not understand is that this happens "sometimes":
* when I build the package in a clean schroot with "debuild", files in
subpackages are missing (but no error message in the log)
* when I install git, then a debuild results in a complete package
* when I cut&paste the command from the build log [1], the copy process
always happens completely, independent of whether git was installed or
not
* when I use pbuilder, files of subpackages are never package, with our
without git in the build dependencies
[1] python3.11 -m build --skip-dependency-check --no-isolation --wheel --outdir .pybuild/cpython3_3.11
Since the package "sometimes" is built correctly, I think that upstream
did it right; however I have no idea where the problem could be. Does
anyone have an idea?
My first guess is that in some circumstances setuptools is doing the installing
and in others it's the dh-python pyproject plugin (using the installer module). Looking at the build log on buildd.d.o, I can see that build is using the plugin/installer.
I think it would be useful to stop the build right before the install step starts [1], manually unpack the wheel (it's a zip file) and see if it has all the files in it. If it does, then plugin/build is doing the right thing and it's an issue with either the plugin or the installer module.
On December 4, 2022 3:42:15 PM UTC, Ole Streicher <olebole@debian.org> wrote:
So I would suspect that it is already the build does something wrong
here. Which package is that? pybuild-plugin-pyproject?
python3-installer
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 72:00:40 |
Calls: | 8,084 |
Calls today: | 2 |
Files: | 13,069 |
Messages: | 5,849,955 |