From 7d14f77224d7482c00b78a5ad1539e28f0feaefb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Wed, 23 Mar 2022 10:49:16 +0000 Subject: setup: replace distutils.spawn.find_executable with shutils MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The distutils.spawn.find_executable method has no compelling benefit over using the standard python shutils module. Signed-off-by: Daniel P. Berrangé --- setup.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 9de1188..911658c 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,6 @@ from distutils.dir_util import remove_tree from distutils.util import get_platform from distutils.spawn import spawn from distutils.errors import DistutilsExecError -import distutils import sys import os @@ -275,7 +274,7 @@ class my_test(Command): ] for binary in binaries: - path = distutils.spawn.find_executable(binary) + path = shutil.which(binary) if path is not None: return path -- cgit v1.2.1