diff --git a/scripts/compile_config.py b/scripts/compile_config.py index a0a6ed2e0..c3b01d056 100644 --- a/scripts/compile_config.py +++ b/scripts/compile_config.py @@ -5,7 +5,7 @@ import json import shutil import importlib import collections -from distutils.util import strtobool +from utils import strtobool global COMPILE_CONFIG COMPILE_CONFIG = None diff --git a/scripts/utils.py b/scripts/utils.py new file mode 100644 index 000000000..27cfbb1a4 --- /dev/null +++ b/scripts/utils.py @@ -0,0 +1,5 @@ +def strtobool(value: str) -> bool: + value = value.lower() + if value in ("y", "yes", "on", "1", "true", "t"): + return True + return False