summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-07-31 09:46:21 +0200
committerMichał Górny <mgorny@gentoo.org>2024-08-06 10:30:08 +0200
commit9b1ccc14f4a6e9b6c614a4c5f5d6ec15f6339d64 (patch)
tree2241118f1dad513cdbc46481fbbf311244e0886d /eclass/python-any-r1.eclass
parentdistutils-r1.eclass: Fix disabling DISTUTILS_ALLOW_WHEEL_REUSE (diff)
downloadgentoo-9b1ccc14f4a6e9b6c614a4c5f5d6ec15f6339d64.tar.gz
gentoo-9b1ccc14f4a6e9b6c614a4c5f5d6ec15f6339d64.tar.bz2
gentoo-9b1ccc14f4a6e9b6c614a4c5f5d6ec15f6339d64.zip
python-utils-r1.eclass: Add a sanity check for PYTHONPATH
Add a sanity check that ensures that PYTHONPATH does not contain any relative paths. While at it, also explicitly warn about PYTHONPATH being set, so we know about it in build logs. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass/python-any-r1.eclass')
-rw-r--r--eclass/python-any-r1.eclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/eclass/python-any-r1.eclass b/eclass/python-any-r1.eclass
index a21df8e89498..c1f27cfbac0d 100644
--- a/eclass/python-any-r1.eclass
+++ b/eclass/python-any-r1.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: python-any-r1.eclass
@@ -272,6 +272,7 @@ python_gen_any_dep() {
# This function will call python_check_deps() if defined.
python_setup() {
debug-print-function ${FUNCNAME} "${@}"
+ _python_sanity_checks
# support developer override
if [[ ${PYTHON_COMPAT_OVERRIDE} ]]; then