summaryrefslogtreecommitdiff
path: root/tools/clang_format.py
diff options
context:
space:
mode:
authorVolker Schroer <3470424+dl1ksv@users.noreply.github.com>2021-12-20 20:33:01 +0100
committerGitHub <noreply@github.com>2021-12-20 14:33:01 -0500
commit635adb7c4d195a0bca899bc10a8eeeacca6857e9 (patch)
tree15c08d162bc003b20f8e7990d7fe3e9ba8f869b1 /tools/clang_format.py
parentdb626c1b23aa47a6a4c1138b405fbe5809d803b5 (diff)
cmake: replace deprecated distutils
* gnuradio: replace deprecated distutils Check if python packaging is available Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com> * Add packaging requirement Signed-off-by: Volker Schroer <3470424+dl1ksv@users.noreply.github.com>
Diffstat (limited to 'tools/clang_format.py')
-rwxr-xr-xtools/clang_format.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/clang_format.py b/tools/clang_format.py
index 4653aa231a..4691f4a722 100755
--- a/tools/clang_format.py
+++ b/tools/clang_format.py
@@ -31,7 +31,7 @@ from subprocess import check_output, CalledProcessError
import sys
import threading
import time
-from distutils import spawn
+import shutil
from argparse import ArgumentParser
from multiprocessing import cpu_count
@@ -100,7 +100,7 @@ class ClangFormat(object):
programs[i] += '.exe'
for program in programs:
- self.path = spawn.find_executable(program)
+ self.path = shutil.which(program)
if self.path:
if not self._validate_version():