diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-01 20:19:27 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-01 20:19:27 +0900 |
commit | 0663602bb95e650975d95b5b87f5f26189b9b27c (patch) | |
tree | 2dea7a5cd0f32141453502a2977c181414d2a7f5 /sphinx/setup_command.py | |
parent | ce8039db1f67bd0176375ceae3a93413befec412 (diff) | |
download | sphinx-git-0663602bb95e650975d95b5b87f5f26189b9b27c.tar.gz |
Close #9595: Deprecate setuptools integration
Diffstat (limited to 'sphinx/setup_command.py')
-rw-r--r-- | sphinx/setup_command.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sphinx/setup_command.py b/sphinx/setup_command.py index ab5441394..de769e64d 100644 --- a/sphinx/setup_command.py +++ b/sphinx/setup_command.py @@ -13,6 +13,7 @@ import os import sys +import warnings from distutils.cmd import Command from distutils.errors import DistutilsExecError from io import StringIO @@ -20,6 +21,7 @@ from typing import Any, Dict from sphinx.application import Sphinx from sphinx.cmd.build import handle_exception +from sphinx.deprecation import RemovedInSphinx70Warning from sphinx.util.console import color_terminal, nocolor from sphinx.util.docutils import docutils_namespace, patch_docutils from sphinx.util.osutil import abspath @@ -140,6 +142,9 @@ class BuildDoc(Command): for builder in self.builder] def run(self) -> None: + warnings.warn('setup.py build_sphinx is deprecated.', + RemovedInSphinx70Warning, stacklevel=2) + if not color_terminal(): nocolor() if not self.verbose: # type: ignore |