From nobody Mon Feb 06 20:29:51 2023 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P9dD238Vcz3n7ky for ; Mon, 6 Feb 2023 20:29:54 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from xmailer.gwdg.de (xmailer.gwdg.de [134.76.10.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4P9dD208w3z3x5m; Mon, 6 Feb 2023 20:29:53 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Authentication-Results: mx1.freebsd.org; none Received: from excmbx-03.um.gwdg.de ([134.76.9.218] helo=email.gwdg.de) by mailer.gwdg.de with esmtp (GWDG Mailer) (envelope-from ) id 1pP87c-000JAt-N6; Mon, 06 Feb 2023 21:29:51 +0100 Received: from [192.168.178.23] (10.250.9.200) by EXCMBX-03.um.gwdg.de (134.76.9.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P521) id 15.1.2507.17; Mon, 6 Feb 2023 21:29:51 +0100 Message-ID: Date: Mon, 6 Feb 2023 21:29:51 +0100 List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: textproc/py-pyphen: Change build to pep517 Content-Language: en-US To: Kurt Jaeger CC: References: <202302061004.316A4YbD001799@gitrepo.freebsd.org> <4774f0f2-1438-56fd-69c4-b35acacdcd33@tsoft.com> From: Rainer Hurling In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.250.9.200] X-ClientProxiedBy: excmbx-21.um.gwdg.de (134.76.9.231) To EXCMBX-03.um.gwdg.de (134.76.9.218) X-Virus-Scanned: (clean) by clamav X-Rspamd-Queue-Id: 4P9dD208w3z3x5m X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:680, ipnet:134.76.0.0/16, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Hi Kurt, Am 06.02.23 um 20:18 schrieb Kurt Jaeger: > Hi! > >> You can change any port to pep517 except in very few cases when this >> would introduce a circular dependency. >> pep517 is now a default way to build python packages because distutils >> is now deprecated in Python. >> In the case of textproc/py-pyphen - it used the ad-hoc setup.py that >> wasn't registering it properly, because this was added before pep517 was >> available. >> >> Hope this helps. > > Yes, thanks. I retested and found out that weasyprint had no DEPEND > on any of the flit* stuff. It needs it to build, but not to run. > > So it was not an issue of distutils vrs pep517. > Just for the case, you missed it ;) In https://wiki.freebsd.org/Python/PEP-517 you can read about the build backend you have to specify, if using pep517. This is mentioned in the initial commit [1], which introduces USE_PYTHON=pep517. HTH and best wishes, Rainer [1] https://cgit.freebsd.org/ports/commit/?id=cc8a1878e0242055ab6a8c20d33654451f78720e