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.
This commit is contained in:
Takeshi KOMIYA 2022-01-01 21:38:08 +09:00
parent f38bd8e952
commit 0ba202009d
2 changed files with 3 additions and 4 deletions

View File

@ -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:

View File

@ -1,4 +1,4 @@
from distutils.core import setup
from setuptools import setup
from sphinx.setup_command import BuildDoc