• [gentoo-dev] [PATCH 07/11] distutils-r1.eclass: Reflow _distutils-r1_ba

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Tue Mar 25 21:30:01 2025
    Signed-off-by: Michał Górny <mgorny@gentoo.org>
    ---
    eclass/distutils-r1.eclass | 100 +++++++++++++++++++------------------
    1 file changed, 51 insertions(+), 49 deletions(-)

    diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
    index 02245424bff6..2eb6e3208082 100644
    --- a/eclass/distutils-r1.eclass
    +++ b/eclass/distutils-r1.eclass
    @@ -1128,65 +1128,67 @@ _distutils-r1_backend_to_key() {
    _distutils-r1_get_backend() {
    debug-print-function ${FUNCNAME} "$@"

    - local build_backend legacy_fallback
    + local build_backend
    if [[ -f pyproject.toml ]]; then
    # if pyproject.toml exists, try getting the backend from it
    # NB: this could fail if pyproject.toml doesn't list one
    build_backend=$("${EPYTHON}" -m gpep517 get-backend)
    fi
    - if [[ -z ${build_backend} && ${DISTUTILS_USE_PEP517} == setuptools &&
    - -f setup.py ]]
    - then
    - # use the legacy setuptools backend as a fallback
    - build_backend=setuptools.build_meta:__legacy__
    - legacy_fallback=1
    - fi
    if [[ -z ${build_backend} ]]; then
    - die "Unable to obtai