Path: csiph.com!news.mixmin.net!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod From: Scott Kitterman Newsgroups: linux.debian.maint.python Subject: Re: Different behavior of package with pyproject.toml Date: Sun, 04 Dec 2022 03:00:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Sun Dec 4 01:57:59 2022 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.2 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart13804533.SRgztXKnY8"; micalg="pgp-sha512"; protocol="application/pgp-signature" X-Mailing-List: archive/latest/20542 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/1976032.W411Haed44@localhost Approved: robomod@news.nic.it Lines: 85 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sat, 03 Dec 2022 20:56:53 -0500 X-Original-Message-ID: <1976032.W411Haed44@localhost> X-Original-References: <87sfhwwjd1.fsf@poch> Xref: csiph.com linux.debian.maint.python:14680 --nextPart13804533.SRgztXKnY8 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii"; protected-headers="v1" From: Scott Kitterman To: debian-python@lists.debian.org Subject: Re: Different behavior of package with pyproject.toml Date: Sat, 03 Dec 2022 20:56:53 -0500 Message-ID: <1976032.W411Haed44@localhost> In-Reply-To: <87sfhwwjd1.fsf@poch> References: <87sfhwwjd1.fsf@poch> On Saturday, December 3, 2022 11:19:06 AM EST Ole Streicher wrote: > 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. Since the build stage uses setuptools as part of it's build process, I thing it's most likely an installer issue. I recently found the installer module doesn't correctly handle flit data files, but I was able to work around that with appropriate .install files. Scott K [1] pybuild plugin_pyproject:118: Unpacking wheel built for python3.10 with "installer" module --nextPart13804533.SRgztXKnY8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE53Kb/76FQA/u7iOxeNfe+5rVmvEFAmOL/mUACgkQeNfe+5rV mvFMfxAA1dgzpX+RrTkWOfO4KTueFHd1DHHKzQjEMyGYoyqOUFgPuA6CrdDJ9pqI nG6p7YfOxP5kGhmHJ1le8pZgEW2Ezy0UFau2ReJ2OHoC5Nv1Mtm8qYIDFUyZhziK syIIVxTIu9IAndXq4EY4bpGHGd1jK7FsTEiKEGGxuW+19fkgSYvxFonNoLHzh2nn B/nQOf2Yy6I8suu8TyQbjI7682ZYi+m/aA9F3zLB+a7hiYn9h6Qe2xgoodhahj0T XMrzA+YWyuQTvO+3dXeDsvvNN/ium104YoPpP7uvejN7biRU/XqbWFfGxzPqZNux uDX5b1raQa2xN7ASlJBivolTSaiQtsN1TB95of4lm0q43mg+ihb5QEXKGrv4W/0N ITIDTnOscPuLRlKeXka9VWwLorqNJ6cRBkzm7mQuFi8Lzoj2vXIZQi4eyXux/8RR n8ZXD39qScCFSrY4wghvZZAsj2XeQ8qhkiQyOP6uJHDapkCMYk4cAoIC7itLBYkO euuonmRbsuBdJF17X2+Vv1jiX9RD+bxkKIg9RrXtPnl2tDnnmI3b76L5GRR8qe2W OAqVPI0j5TfFVuDp0LtGvcSQvpyoaDV0H/neaUaMh56zJDiYhyPM3my+2hybZ47z OEbPRdv8GjK37jViR9GOzg+jJ0l44m8gOsamO0fsf3CG5ucqlVk= =N2oY -----END PGP SIGNATURE----- --nextPart13804533.SRgztXKnY8--