• [gentoo-dev] [PATCH 1/2] distutils-r1.eclass: Print buildsys package ve

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

    diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
    index e9a28056e9cc..c2f5ab263cd5 100644
    --- a/eclass/distutils-r1.eclass
    +++ b/eclass/distutils-r1.eclass
    @@ -851,6 +851,97 @@ _distutils-r1_check_all_phase_mismatch() {
    fi
    }

    +# @FUNCTION: _distutils-r1_print_package_versions
    +# @INTERNAL
    +# @DESCRIPTION:
    +# Print the version of the relevant build system packages to aid
    +# debugging.
    +_distutils-r1_print_package_versions() {
    + local packages=()
    +
    + if [[ ${DISTUTILS_USE_PEP517} ]]; then
    + packages+=(
    + dev-python/gpep517
    + dev-python/installer
    + )
    + case ${DISTUTILS_USE_PEP517} in
    + flit)
    + packages+=(
    + dev-python/flit_core
    + )
    + ;;
    + flit_scm)
    + packages+=(
    + dev-python/flit_core
    + dev-python/flit_scm
    + dev-python/setuptools_scm
    + )
    + ;;
    + hatchling)
    + packages+=(
    + dev-python/hatchli