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

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index f863872330c2..9b83d502d142 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -599,7 +599,7 @@ distutils_enable_sphinx() {
 #
 # - pytest: dev-python/pytest
 #
-# - setup.py: setup.py test (no deps included)
+# - setup.py: setup.py test (no deps included; deprecated)
 #
 # - unittest: for built-in Python unittest module
 #
@@ -645,6 +645,11 @@ distutils_enable_tests() {
                        fi
                        ;;
                setup.py)
+                       eqawarn
+                       eqawarn "=== ${CATEGORY}/${PF} ==="
+                       eqawarn "distutils_enable_tests setup.py is deprecated 
and will be removed."
+                       eqawarn "Please use unittest or pytest instead."
+                       eqawarn
                        ;;
                unittest)
                        ;;

Reply via email to