Path: csiph.com!aioe.org!bofh.it!news.nic.it!robomod From: Nicholas D Steeves Newsgroups: linux.debian.maint.python Subject: Re: PEP-517/PEP-518 Support In Debian Date: Fri, 05 Jun 2020 01:50:01 +0200 Message-ID: References: X-Original-To: debian-python@lists.debian.org X-Mailbox-Line: From debian-python-request@lists.debian.org Thu Jun 4 23:40:19 2020 Old-Return-Path: X-Amavis-Spam-Status: No, score=-12.179 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, FREEMAIL_FROM=0.001, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5.5 Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version; bh=+yjs2ZmgARzo0bx1uiMWlahZX5pP+ChsCf8+PWvYyp4=; b=YCRWkLcKvRKCEwmkLANw6WPQWu50J0XI9AuDv9E8hYOhj4Y+f2oO9LCIccDs6usCvd c5xwIuREEPBeKHxCi6NPCOYgmMqyO/A2UxLajAXPq1ypkH2qY1MgDzaYEKk1fR/5BDDC OoBkuwTvXkLkis0Sn3WMMZ4deI+sKbdnkyuLOP+I9whVrC3c1SIaSshplHV7HfdQqE3+ 4Yf1s3dHNPcvAIadbH51P1h9dves2eeHWUnOhj8rqlZ8udZKtDVWVouFW0wFQo4Mlup0 2R8yPfETAuFfm9zcKMcUfxC6m4GcDh3rggVDbAWEFIk7LU3vOMu3s1AjuA+Hq8pWUDDr wu/A== X-Google-Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version; bh=+yjs2ZmgARzo0bx1uiMWlahZX5pP+ChsCf8+PWvYyp4=; b=Ea9tF5SRnJhuvkWpScmLnJzK70lOocFGzkB0U9s0bSQO7RrjOnl2Fb0vVn9sA7/7b0 pBXDg1WPS8MQ+c/T8BE4KgU7UyynPVDO4E/Gko1aupNhYreXyG8qEuSDZe4J5K5qWeZu /m77udQiLoL3JDHr2eRceUkcIRVKZmVqRw0ya/K2+Mv8Y9OjkFlsw0yj0Dk5Cg8OmtGi 4lHNbceYh8HP7SiHZNzEiUwtqYH8AXDobhVfWQv2LZX/W3QZe9zBnim44vKVjknb7sA4 BiV464NAKzbjG7p39YpjBHwH2fa7ruXFspALC/xYQMx5M2VJTk7Tf6mSn9WA/uKzZ29Q oLEg== X-Gm-Message-State: AOAM5303VE6KLWmAAsxfIqkYJ5Y7VrB5l/yFciahFnUSL8weSProXPrl sbPaCn3X8QgykHyuBhm0fPX5eTMY X-Google-SMTP-Source: ABdhPJziFrx72K0/JxP526Gu2WOW6u6+oXT0jmXq6WBSQD8WaCIgcwlA36vs5NNhICOqGxVRcgRlSA== X-Received: by 2002:a37:414f:: with SMTP id o76mr7033689qka.375.1591314004321; Thu, 04 Jun 2020 16:40:04 -0700 (PDT) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Mailing-List: archive/latest/18330 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/87v9k6s8mo.fsf@DigitalMercury.dynalias.net Approved: robomod@news.nic.it Lines: 95 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 04 Jun 2020 19:39:59 -0400 X-Original-Message-ID: <87v9k6s8mo.fsf@DigitalMercury.dynalias.net> X-Original-References: <1901857.gxORzZljd2@sk-desktop> <20200413091853.GA298937@mitya57.me> <3852987.UMqJ38MGZC@sk-desktop> Xref: csiph.com linux.debian.maint.python:12624 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, Scott Kitterman writes: > On Monday, April 13, 2020 5:18:53 AM EDT Dmitry Shachnev wrote: >> Hi Scott! >>=20 >> On Sun, Apr 12, 2020 at 06:31:57PM -0400, Scott Kitterman wrote: >> > This being roughly the mid-point in the development cycle, I thought it >> > might be good to see where we are in terms of future Python packaging >> > developments. >> >=20 >> > As I understand it, PEP-517 and PEP-518 are 'the future'. >> > While importing the latest release of Fissix (a grammar parser used by Bowler) I found that it had a pyproject.toml but no setup.py. >> > I took a look at the presence of pyproject.toml files in the Debian >> > archive. There are currently 99 packages. Of those, only 28 specify a >> > 'build-backend', which is required by 517/518 to be useful for buildin= g a >> > package. >> >=20 >> > 25 specify: build-backend =3D "setuptools.build_meta" (including setup= tools) >> > 3 specify: build-backend =3D "flit_core.buildapi" (including flit) >>=20 >> pyqt5 and pyqt5webengine specify: build-backend =3D "sipbuild.api". > Is there existing documentation around if/how build-backend can be used to work around the absence of setup.py? > So they do. They didn't show up in my codesearch.d.n results, that makes= me=20 > wonder what else I missed. If anyone has an idea of a better way to trac= k=20 > this, please speak up. > >> > If build-backend is not specified, the build system has to fall back to >> > setup.py. >> >=20 >> > I've recently package flit (just arrived in Testing) and written a flit >> > plugin for pybuild that's pending review for merging[1]. I also packa= ged >> > pep517 for our pip package, so that's available to support future Debi= an >> > tool development in this area. > > P1otr merged the flit plugin a little while ago, so it'll be in the next = dh- > python upload. > I think this is probably what is needed to unblock work on fissix (and thus Bowler), because its Makefile has: python -m pip install -r requirements.txt python -m pip install -r requirements-dev.txt python -m flit install --symlink [snip] Any advise for existing workarounds would be appreciated. So far the only idea I've had is writing or generating a setup.py, and then adding it as a quilt patch. Thanks, Nicholas --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE4qYmHjkArtfNxmcIWogwR199EGEFAl7Zhk8ACgkQWogwR199 EGHhRRAAo+5R6CRnVUXC2riTbk++lIAW+UnTOhYdIVJZGrWc9SVrOw+X8EvK1//e HuHfnSETACydvKd3LqXuDhuP1VsZzWWpxJisS5ZI00B/BX0oYdDzvHAmiPmCOO+O CxR+VLsO9MzHP9bXvHdNJiuCMA5CLaNIQKtC6yt2cxIVE44l8KwNi5U9kiojuZZV q71RvBoE+HizIN3glgTQWzVIQCBYf3+fYTVm7iQ73EAzZaGjkRYw0SJY1bYE+MqL f170ytDsrbcuRKfZntNsM2I9VbSVKuYfuuktNRVUYlUEayfZsoNjW/1Yt+F793o1 wixQGdjyR18bDG+AEk5iozpz+FnJIooIdTzLcVehxH4hoa6nLLJX/lAMp8ZOYU17 UWZP8mekUbqtuJFubW7fZRnZlPNOHP1MJO2cOXl+xzOiiRmZjeuwHgt7dKiAfYNe aao4gHvHocB1V2ssLIiEHDpzClhRTaULHt5nxWQRx69rfAgHq1WEP3HQyZYYk/J5 vL1N0en6GrBtMep5MrY7wCCNimz4GQWZ0DWq97Vc7deVAy1Jw8tRYLphDmcXQ5Kp hb2V0HL0qWzMqm5y4P88bUapyKBBKQ1ZFio4ev4ezhqCoKcQ8+KzUig7ee4h8g01 Qr6LNpNXU29bZEqAPS/NLqKcNPTByxj4mhrCjNbxKuDqN+xDXAg= =FhN/ -----END PGP SIGNATURE----- --=-=-=--