• [gentoo-dev] [PATCH] distutils-r1.eclass: Unleash dev-python/gpep517

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sat Apr 23 18:20:01 2022
    Switch the distutils-r1.eclass to gpep517 code branches unconditionally.

    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    ---
    eclass/distutils-r1.eclass | 84 +++++++-------------------------------
    1 file changed, 15 insertions(+), 69 deletions(-)

    diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
    index 49c98290f30f..6fc9f1b9c1ff 100644
    --- a/eclass/distutils-r1.eclass
    +++ b/eclass/distutils-r1.eclass
    @@ -159,13 +159,6 @@ esac
    # ${DISTUTILS_DEPS}"
    # @CODE

    -# @ECLASS_VARIABLE: GPEP517_TESTING
    -# @USER_VARIABLE
    -# @DESCRIPTION:
    -# Enable in make.conf to test building via dev-python/gpep517 instead of
    -# inline Python snippets. dev-python/gpep517 needs to be installed
    -# first.
    -
    if [[ ! ${_DISTUTILS_R1} ]]; then

    [[ ${EAPI} == 6 ]] && inherit eutils xdg-utils
    @@ -192,11 +185,8 @@ _distutils_set_globals() {
    die "DISTUTILS_USE_SETUPTOOLS is not used in PEP517 mode"
    fi

    - # installer is used to install the wheel
    - # tomli is used to read build-backend from pyproject.toml
    bdep='
    - >=dev-python/installer-0.4.0_p20220124[${PYTHON_USEDEP}]
    - >=dev-python/tomli-1.