Install chardet as fallback package for charset_normalizer on Darwin ARM64

This commit is contained in:
valeros
2023-08-14 14:54:50 +03:00
parent 682da88fe2
commit bf5a65ba6b
+4
View File
@@ -27,6 +27,7 @@ import sys
import shutil
import os
import pkg_resources
import platform as sys_platform
import click
import semantic_version
@@ -1108,6 +1109,9 @@ def install_python_deps():
"esp-idf-kconfig": "~=1.2.0"
}
if sys_platform.system() == "Darwin" and "arm" in sys_platform.machine().lower():
deps["chardet"] = ">=3.0.2,<4"
python_exe_path = get_python_exe()
installed_packages = _get_installed_pip_packages(python_exe_path)
packages_to_install = []