summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-11-18 17:01:32 +0100
committerMichał Górny <mgorny@gentoo.org>2023-11-19 17:01:14 +0100
commit2e9c80d0b20108082ee81e5c07b3779a6ddb9074 (patch)
tree7309da5b8aafb55fc6d902c59dfe7e86e8b96fc7 /eclass/distutils-r1.eclass
parentpython-utils-r1.eclass: Do not pass `-p no:*` w/ no autoloading (diff)
downloadgentoo-2e9c80d0b20108082ee81e5c07b3779a6ddb9074.tar.gz
gentoo-2e9c80d0b20108082ee81e5c07b3779a6ddb9074.tar.bz2
gentoo-2e9c80d0b20108082ee81e5c07b3779a6ddb9074.zip
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@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/33888 Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r--eclass/distutils-r1.eclass3
1 files changed, 3 insertions, 0 deletions
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