1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-03 03:42:35 +01:00

Remove dependency on distutils

Align with devlib and remove dependencies on distutils.

[1] https://github.com/ARM-software/devlib/pull/631/
This commit is contained in:
Marc Bonnici
2025-03-01 16:08:14 -06:00
parent b734e90de1
commit 75cfb56b38
2 changed files with 23 additions and 2 deletions

View File

@@ -44,7 +44,11 @@ from time import sleep
from io import StringIO
# pylint: disable=wrong-import-position,unused-import
from itertools import chain, cycle
from distutils.spawn import find_executable # pylint: disable=no-name-in-module, import-error
try:
from shutil import which as find_executable
except ImportError:
from distutils.spawn import find_executable # pylint: disable=no-name-in-module, import-error
from dateutil import tz