diff options
author | Michał Górny <mgorny@gentoo.org> | 2021-11-09 15:39:51 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-01-16 18:40:52 +0100 |
commit | 7ff39e403ecb492d9921826848ead926ea46ce3b (patch) | |
tree | d6e82341f2533b779366a74ce6d7469244ef77b6 /media-video/vdr/metadata.xml | |
parent | dev-python/installer: Add 0.4.0_p20220115 snap with CLI patch (diff) | |
download | gentoo-7ff39e403ecb492d9921826848ead926ea46ce3b.tar.gz gentoo-7ff39e403ecb492d9921826848ead926ea46ce3b.tar.bz2 gentoo-7ff39e403ecb492d9921826848ead926ea46ce3b.zip |
distutils-r1.eclass: Implement PEP517 mode
Add a PEP517 mode to the distutils-r1.eclass in order to facilitate
building packages via PEP517 backends. In order to use it, set
DISTUTILS_USE_PEP517 to the appropriate build system name. The eclass
will take care of setting BDEPEND, then invoke the backend to build
a wheel and then install its contents in python_compile(). The install
phase is limited to merging the staging area into the image directory.
In PEP517 mode, the test phase is automatically provided with venv-style
install tree that should suffice the vast majority of test suites.
As a result, distutils_install_for_testing should no longer be necessary
and is not available in this mode.
The new mode can also be used to install pre-PEP517 distutils
and setuptools packages. To do so, just specify setuptools backend.
If pyproject.toml is missing, the eclass assumes legacy setuptools
backend that invokes setup.py. It also enables setuptools-vendored
distutils, effectively carrying the migration from deprecated stdlib
version.
The PEP517 support effectively deprecates the legacy eclass mode.
This follows upstream deprecation of distutils and install commands
in setuptools.
Closes: https://github.com/gentoo/gentoo/pull/23750
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'media-video/vdr/metadata.xml')
0 files changed, 0 insertions, 0 deletions