commit:     1cfa96a28b3a21a7453cc89bc49f8dc143b08445
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Dec  9 11:47:29 2022 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Dec  9 11:47:29 2022 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=1cfa96a2

mark distutils_extensions as deprecated

Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 src/snakeoil/dist/distutils_extensions.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/snakeoil/dist/distutils_extensions.py 
b/src/snakeoil/dist/distutils_extensions.py
index a5f6789e..10a77ed5 100644
--- a/src/snakeoil/dist/distutils_extensions.py
+++ b/src/snakeoil/dist/distutils_extensions.py
@@ -17,6 +17,7 @@ import shutil
 import subprocess
 import sys
 import textwrap
+import warnings
 from contextlib import ExitStack, contextmanager, redirect_stderr, 
redirect_stdout
 from multiprocessing import cpu_count
 
@@ -37,6 +38,8 @@ from ..contexts import syspath
 from ..version import get_git_version
 from .generate_docs import generate_html, generate_man
 
+warnings.warn("the distutils_extensions module is deprecated", 
DeprecationWarning, stacklevel=2)
+
 # forcibly disable lazy module loading
 os.environ['SNAKEOIL_DEMANDIMPORT'] = 'false'
 

Reply via email to