Skip to content

Commit

Permalink
Enable Python CHIP Controller on Raspbian (#15592)
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanjansson authored and pull[bot] committed Mar 3, 2022
1 parent d05469b commit 1682724
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 2 additions & 0 deletions src/controller/python/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
3 changes: 2 additions & 1 deletion src/controller/python/build-chip-wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ def finalize_options(self):
'stringcase',
'pyyaml',
'ipdb',
'ipykernel'
'ipykernel',
'deprecation'
]

if platform.system() == "Darwin":
Expand Down

0 comments on commit 1682724

Please sign in to comment.