Skip to content

Commit

Permalink
[python] make enum part of cluster wheel (#26740)
Browse files Browse the repository at this point in the history
* [python] make enum part of cluster wheel

The new enum type is required in the Cluster objects. Make it and its
dependency part of the Cluster CHIP wheel.

Fixes PR #24352.

* Restyle
  • Loading branch information
agners authored and pull[bot] committed Sep 8, 2023
1 parent f977b90 commit 2618293
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/controller/python/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ chip_python_wheel_action("chip-core") {
"chip/clusters/Attribute.py",
"chip/clusters/Command.py",
"chip/clusters/__init__.py",
"chip/clusters/enum.py",
"chip/commissioning/__init__.py",
"chip/commissioning/commissioning_flow_blocks.py",
"chip/commissioning/pase.py",
Expand Down Expand Up @@ -300,7 +299,6 @@ chip_python_wheel_action("chip-core") {
}

py_package_reqs = [
"aenum",
"coloredlogs",
"construct",
"dacite",
Expand Down Expand Up @@ -361,6 +359,7 @@ chip_python_wheel_action("chip-clusters") {
"chip/clusters/Objects.py",
"chip/clusters/TestObjects.py",
"chip/clusters/Types.py",
"chip/clusters/enum.py",
"chip/tlv/__init__.py",
]
},
Expand All @@ -378,7 +377,10 @@ chip_python_wheel_action("chip-clusters") {
"chip.tlv",
]

py_package_reqs = [ "dacite" ]
py_package_reqs = [
"dacite",
"aenum",
]

py_package_name = "${chip_python_package_prefix}-clusters"
py_package_output = string_replace(py_package_name, "-", "_")
Expand Down

0 comments on commit 2618293

Please sign in to comment.