From 70e2fee89eff20f2b4c7503b60668c4a7a523e08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kan=20Jansson?= <17030490+hakanjansson@users.noreply.github.com> Date: Sat, 26 Feb 2022 14:13:11 +0100 Subject: [PATCH] Enable Python CHIP Controller on Raspbian (#15592) --- BUILD.gn | 2 +- src/controller/python/BUILD.gn | 2 ++ src/controller/python/build-chip-wheel.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 30ccbf222ab14d..09b8f29565265a 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -36,7 +36,7 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") { declare_args() { chip_enable_python_modules = (current_os == "mac" || current_os == "linux") && - (host_cpu == "x64" || host_cpu == "arm64") + (host_cpu == "x64" || host_cpu == "arm64" || host_cpu == "arm") enable_pylib = false } diff --git a/src/controller/python/BUILD.gn b/src/controller/python/BUILD.gn index c0f05d6c91cddb..439f6993902639 100644 --- a/src/controller/python/BUILD.gn +++ b/src/controller/python/BUILD.gn @@ -213,6 +213,8 @@ pw_python_action("python") { cpu_tag = "x86_64" } else if (current_cpu == "arm64" && current_os == "linux") { cpu_tag = "aarch64" + } else if (current_cpu == "arm" && current_os == "linux") { + cpu_tag = "armv7l" } else { cpu_tag = current_cpu } diff --git a/src/controller/python/build-chip-wheel.py b/src/controller/python/build-chip-wheel.py index 4e138fbf096cc8..630d15d7a3b93f 100644 --- a/src/controller/python/build-chip-wheel.py +++ b/src/controller/python/build-chip-wheel.py @@ -135,7 +135,8 @@ def finalize_options(self): 'stringcase', 'pyyaml', 'ipdb', - 'ipykernel' + 'ipykernel', + 'deprecation' ] if platform.system() == "Darwin":