Re: Python: Switch from distutils to pep517
- In reply to: Charlie Li : "Re: Python: Switch from distutils to pep517"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jan 2025 15:25:47 UTC
Hello Charlie, Thanks for clarification and I'm looking for pep517 to get updated soon. What a commiter can do about this? Each python port that I come cross with in bugzilla that uses distutils, I check if pep517 is possible and then I try to convince maintainer to use that build instead. Some maintainers go for new build (sometimes adding pytest to it too) others prefers to wait until it is *really* deprecated. I don't know if a decision of a mass change will be made or not, but as committer, I'm thinking opening PRs for ports where pep517 do work. Maybe a master PR should exist to connect all indidual PRs. With an updated pep517 wiki this will be easier to execute. Thoughts? Thanks, Charlie Li <vishwin@freebsd.org> escreveu (quinta, 9/01/2025 à(s) 05:41): > Nuno Teixeira wrote: > > Hello all, > > > > How is the status of switching from deprecated distutils to pep517 build? > > I remember some time ago to see some changes but it seems to stalled now. > > > Not stalled. Not every Python package in the wild has flipped to PEP-517 > yet. > > For people upgrading to pep517, are depends correct? > > > > BUILD_DEPENDS= \ > > ${PY_SETUPTOOLS} \ > > ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} > > > > Or ${PY_SETUPTOOLS} should be replaced with ? > > ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} > > > The latter. Originally I implemented ${PY_SETUPTOOLS} when > devel/py-setuptools58 was still viable for the remaining > USE_PYTHON=distutils cases, but both significant changes in later > devel/py-pyproject-hooks breaking setuptools 58 (and rendering > maintenance uneconomical) and continued maintenance of setup() direct > execution obviated that plan. Until I update devel/py-setuptools itself, > which will specify devel/py-wheel as both {BUILD,RUN}_DEPENDS, you will > need to also specify the latter in each setuptools PEP-517 consumer. > > I will update the documentation (mostly the wiki?) accordingly. > > -- > Charlie Li > ...nope, still don't have an exit line. > -- Nuno Teixeira FreeBSD UNIX: <eduardo@FreeBSD.org> Web: https://FreeBSD.org