Skip to content

Commit bf5a65b

Browse files
committed
Install chardet as fallback package for charset_normalizer on Darwin ARM64
1 parent 682da88 commit bf5a65b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builder/frameworks/espidf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
import shutil
2828
import os
2929
import pkg_resources
30+
import platform as sys_platform
3031

3132
import click
3233
import semantic_version
@@ -1108,6 +1109,9 @@ def _get_installed_pip_packages(python_exe_path):
11081109
"esp-idf-kconfig": "~=1.2.0"
11091110
}
11101111

1112+
if sys_platform.system() == "Darwin" and "arm" in sys_platform.machine().lower():
1113+
deps["chardet"] = ">=3.0.2,<4"
1114+
11111115
python_exe_path = get_python_exe()
11121116
installed_packages = _get_installed_pip_packages(python_exe_path)
11131117
packages_to_install = []

0 commit comments

Comments
 (0)