• [gentoo-dev] [PATCH 3/3] distutils-r1.eclass: Silence pydevd warnings

    From =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?@21:1/5 to All on Sat Nov 18 18:00:01 2023
    Set `PYDEVD_DISABLE_FILE_VALIDATION` to silence warnings about frozen
    modules from dev-python/pydevd.

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

    diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
    index 3d756eaad556..0a7b18e4a1a4 100644
    --- a/eclass/distutils-r1.eclass
    +++ b/eclass/distutils-r1.eclass
    @@ -1813,6 +1813,9 @@ distutils-r1_run_phase() {
    local -x CYTHON_FORCE_REGEN=1
    fi

    + # silence warnings when pydevd is loaded on Python 3.11+
    + local -x PYDEVD_DISABLE_FILE_VALIDATION=1
    +
    # Rust extensions are incompatible with C/C++ LTO compiler
    # see e.g. https://bugs.gentoo.org/910220
    if has cargo ${INHERITED}; then
    --
    2.42.1

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)