summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-11-09 15:39:51 +0100
committerMichał Górny <mgorny@gentoo.org>2022-01-16 18:40:52 +0100
commit7ff39e403ecb492d9921826848ead926ea46ce3b (patch)
treed6e82341f2533b779366a74ce6d7469244ef77b6 /metadata/md5-cache/dev-python/pyscreenshot-3.0
parentdev-python/installer: Add 0.4.0_p20220115 snap with CLI patch (diff)
downloadgentoo-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 'metadata/md5-cache/dev-python/pyscreenshot-3.0')
0 files changed, 0 insertions, 0 deletions