[python] make enum part of cluster wheel (#26740)
* [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
diff --git a/src/controller/python/BUILD.gn b/src/controller/python/BUILD.gn
index 3f9e310..102e9f3 100644
--- a/src/controller/python/BUILD.gn
+++ b/src/controller/python/BUILD.gn
@@ -214,7 +214,6 @@
"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",
@@ -300,7 +299,6 @@
}
py_package_reqs = [
- "aenum",
"coloredlogs",
"construct",
"dacite",
@@ -361,6 +359,7 @@
"chip/clusters/Objects.py",
"chip/clusters/TestObjects.py",
"chip/clusters/Types.py",
+ "chip/clusters/enum.py",
"chip/tlv/__init__.py",
]
},
@@ -378,7 +377,10 @@
"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, "-", "_")