From nobody Mon Feb 06 17:41: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 4P9YVJ3Qtcz3n00r for ; Mon, 6 Feb 2023 17:42:00 +0000 (UTC) (envelope-from yuri@freebsd.org) Received: from shell1.rawbw.com (shell1.rawbw.com [198.144.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4P9YVH66rRz4V2Y; Mon, 6 Feb 2023 17:41:59 +0000 (UTC) (envelope-from yuri@freebsd.org) Authentication-Results: mx1.freebsd.org; none Received: from [192.168.5.3] (c-73-162-96-20.hsd1.ca.comcast.net [73.162.96.20]) (authenticated bits=0) by shell1.rawbw.com (8.15.1/8.15.1) with ESMTPSA id 316Hfrj1044978 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Mon, 6 Feb 2023 09:41:53 -0800 (PST) (envelope-from yuri@freebsd.org) X-Authentication-Warning: shell1.rawbw.com: Host c-73-162-96-20.hsd1.ca.comcast.net [73.162.96.20] claimed to be [192.168.5.3] Message-ID: <4774f0f2-1438-56fd-69c4-b35acacdcd33@tsoft.com> Date: Mon, 6 Feb 2023 09:41:51 -0800 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.5.0 Subject: Re: textproc/py-pyphen: Change build to pep517 Content-Language: en-US To: Kurt Jaeger Cc: python@freebsd.org References: <202302061004.316A4YbD001799@gitrepo.freebsd.org> From: Yuri Victorovich In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4P9YVH66rRz4V2Y X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7961, ipnet:198.144.192.0/19, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Hi Kurt, 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. Best, Yuri On 2/6/23 08:42, Kurt Jaeger wrote: > Hi! > > because of this: > >> textproc/py-pyphen: Change build to pep517 > I want to ask you about the details of this. > > I'm trying to upgrade print/py-weasyprint from version 51 to 57.2. > > It looks like it now requires devel/py-flit and/or devel/py-flit-core. > > Those are ports that are built with > > USE_PYTHON=distutils > > Can I easily change those to > > USE_PYTHON=pep517 > > or is there some magic involved ? >