Skip to content

Commit 5e96f82

Browse files
authored
[BUILD] Don't use deprecated distutils module in benchmarks/setup.py (#5284)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent b8f3305 commit 5e96f82

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

benchmarks/setup.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
import shutil
33
import subprocess
44
import sys
5-
6-
# TODO: update once there is replacement for clean:
7-
# https://github.com/pypa/setuptools/discussions/2838
8-
from distutils import log # pylint: disable=[deprecated-module]
5+
import logging
96

107
from setuptools import setup, Extension, find_packages
118
from setuptools.command.build_ext import build_ext as _build_ext
@@ -38,7 +35,7 @@ def run(self):
3835
self.build_extension()
3936

4037
def check_call(self, *popenargs, **kwargs):
41-
log.info(" ".join(popenargs[0]))
38+
logging.info(" ".join(popenargs[0]))
4239
if not self.dry_run:
4340
subprocess.check_call(*popenargs, **kwargs)
4441

0 commit comments

Comments
 (0)