Path: csiph.com!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Simon Josefsson Newsgroups: linux.debian.maint.python Subject: Re: Bug#1091197: ITP: python-genson -- user-friendly JSON Schema generator Date: Mon, 27 Jan 2025 11:20:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Jan 27 10:11:59 2025 Old-Return-Path: X-Amavis-Spam-Status: No, score=-14.4 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, FOURLA=0.1, LDO_WHITELIST=-5, PGPSIGNATURE=-5, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -4.6 Openpgp: id=B1D2BD1375BECB784CF4F8C4D73CF638C53C06BE; url=https://josefsson.org/key-20190320.txt X-Hashcash: 1:23:250127:wrar@debian.org::mGgDcdfPxY0jejxI:Fg72 X-Hashcash: 1:23:250127:debian-python@lists.debian.org::Mc8iXIZEiYbWuBR/:hpjP User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Mailing-List: archive/latest/22794 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/877c6gtvkl.fsf@josefsson.org Approved: robomod@news.nic.it Lines: 76 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 27 Jan 2025 11:11:54 +0100 X-Original-Message-ID: <877c6gtvkl.fsf@josefsson.org> X-Original-References: <87jzbqsjq4.fsf__16847.3339335591$1734954690$gmane$org@kaka.sjd.se> <87o70zwauh.fsf@kaka.sjd.se> <87jzbmwvs8.fsf@kaka.sjd.se> Xref: csiph.com linux.debian.maint.python:16694 --=-=-= Content-Type: text/plain Hi Could someone help me and upstream how to get python setuptools to get all files installed for this package? Please see this thread and upstream bug report: https://github.com/wolverdude/GenSON/issues/80 I work around the problem in the debian packaging like this: export PYBUILD_BEFORE_TEST = \ cp -rv {dir}/genson/schema {build_dir}/$(PYBUILD_NAME) However installing these files should be done by upstream setuptools magic somehow. Some hint or ideally an upstream merge request to fix this would be appreciated... /Simon Andrey Rakhmatullin writes: >> Thanks for reply! I added that but commented out since adding it did >> not change the pybuild behaviour. The extra genson/schema/ files are >> not built and installed, only the top-level genson/ directory which is >> the case even without PYBUILD_NAME. > > I've rechecked and the proposed fix also included "also, note the big fat > warnings about upstream not configuring setuptools correctly". > As I've just checked, running `python3 -m build` in the upstream repo also > produces a wheel without the schema subpackage. Carsten Schoenert writes: >> Why doesn't pybuild do the right thing by default? > > on which base pybuild could make the right decision? pybuild is doing > what it need and should do. > > The missing installation of the subfolder looks to me like an upstream > issue. > If the folder is needed for later usage it needs to get installed by > setuptools. /Simon --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQNoBAEWCAMQFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmeXW+sUHHNpbW9uQGpv c2Vmc3Nvbi5vcmfCHCYAmDMEXJLOtBYJKwYBBAHaRw8BAQdACIcrZIvhrxDBkK9f V+QlTmXxo2naObDuGtw58YaxlOu0JVNpbW9uIEpvc2Vmc3NvbiA8c2ltb25Aam9z ZWZzc29uLm9yZz6IlgQTFggAPgIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgBYh BLHSvRN1vst4TPT4xNc89jjFPAa+BQJl/YgIBQkLehFUAAoJENc89jjFPAa+CboA +wUa06RD5e5VTCxvSWtPS75Wq2qBeYGZnf0jvUMxa2n4AP4xkUeAPPnNuMsTm2fs FCDIGaEM2Yn6Vb2huzzT1Fw/BLgzBFySz4EWCSsGAQQB2kcPAQEHQOxTCIOaeXAx I2hIX4HK9bQTpNVei708oNr1Klm8qCGKiPUEGBYIACYCGwIWIQSx0r0Tdb7LeEz0 +MTXPPY4xTw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