diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-01 21:38:08 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2022-01-01 21:38:56 +0900 |
commit | 0ba202009d8aeca27d0fab1bc0760bc5245f77ff (patch) | |
tree | 55e5f146e088e8300c04e3030bfc6eeadbe0b04f | |
parent | f38bd8e9529d50e5cceffe3ca55be4b758529ff7 (diff) | |
download | sphinx-git-0ba202009d8aeca27d0fab1bc0760bc5245f77ff.tar.gz |
refactor: Reduce usages of distutils (refs: #9820)
distutils module is now deprecated and will be removed since Python
3.12. So this reduces the usages of the module.
-rw-r--r-- | setup.py | 5 | ||||
-rw-r--r-- | tests/roots/test-setup/setup.py | 2 |
2 files changed, 3 insertions, 4 deletions
@@ -1,6 +1,5 @@ import os import sys -from distutils import log from io import StringIO from setuptools import find_packages, setup @@ -148,8 +147,8 @@ else: if catalog.fuzzy and not self.use_fuzzy: continue - log.info('writing JavaScript strings in catalog %r to %r', - po_file, js_file) + self.log.info('writing JavaScript strings in catalog %r to %r', + po_file, js_file) jscatalog = {} for message in catalog: diff --git a/tests/roots/test-setup/setup.py b/tests/roots/test-setup/setup.py index 3cd86415a..efff6f2e1 100644 --- a/tests/roots/test-setup/setup.py +++ b/tests/roots/test-setup/setup.py @@ -1,4 +1,4 @@ -from distutils.core import setup +from setuptools import setup from sphinx.setup_command import BuildDoc |