summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-04-05 12:12:19 +0200
committerGitHub <noreply@github.com>2024-04-05 12:12:19 +0200
commit53fea582e2574600d7f69d7535b6d6dadc883ab7 (patch)
tree8a541189d91d31dce8ae78f67ff1f14b4d6f059b
parent28c08a784ebdddfe56d8d33b4f28b147ad0a5265 (diff)
parent046ddd7dfa3e73886de460c961c86c66192e5e2b (diff)
downloadvyos-build-53fea582e2574600d7f69d7535b6d6dadc883ab7.tar.gz
vyos-build-53fea582e2574600d7f69d7535b6d6dadc883ab7.zip
Merge pull request #549 from HollyGurza/T5124
T5124: Python3 deprecation distutils
-rw-r--r--scripts/image-build/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/image-build/utils.py b/scripts/image-build/utils.py
index 6906c52d..d50eac57 100644
--- a/scripts/image-build/utils.py
+++ b/scripts/image-build/utils.py
@@ -19,7 +19,7 @@
import sys
import os
-from distutils.spawn import find_executable
+import shutil
# Local modules
import defaults
@@ -52,7 +52,7 @@ class DependencyChecker(object):
def _get_missing_binaries(self, binaries):
missing_binaries = []
for b in binaries:
- if not find_executable(b):
+ if not shutil.which(b):
missing_binaries.append(b)
return missing_binaries