commit:     2e9c80d0b20108082ee81e5c07b3779a6ddb9074
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 18 16:01:32 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 19 16:01:14 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e9c80d0

distutils-r1.eclass: Silence pydevd warnings

Set `PYDEVD_DISABLE_FILE_VALIDATION` to silence warnings about frozen
modules from dev-python/pydevd.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/33888
Signed-off-by: Michał Górny <mgorny <AT> 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

Reply via email to