Re: Python: Switch from distutils to pep517
- Reply: Nuno Teixeira : "Re: Python: Switch from distutils to pep517"
- In reply to: Nuno Teixeira : "Python: Switch from distutils to pep517"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 09 Jan 2025 05:41:06 UTC
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.