-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Python wheels: Create one wheel to rule them all #41832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,8 @@ import("//build_overrides/chip.gni") | |
| import("//build_overrides/pigweed.gni") | ||
| import("$dir_pw_build/python_dist.gni") | ||
|
|
||
| import("${chip_root}/src/controller/flags.gni") | ||
|
|
||
| # This target creates a single Python package and wheel for yamltests. It will | ||
| # merge all Python dependencies Matter. The output is located in: | ||
| # out/obj/scripts/matter_yamltests_distribution/ <- source files here | ||
|
|
@@ -31,3 +33,61 @@ pw_python_distribution("matter_yamltests_distribution") { | |
| append_date_to_version = true | ||
| } | ||
| } | ||
|
|
||
| pw_python_distribution("matter_iot") { | ||
| packages = [ | ||
| "${chip_root}/scripts/py_matter_yamltests:matter-yamltests", | ||
| "${chip_root}/scripts/py_matter_idl:matter-idl", | ||
| "${chip_root}/src/python_testing/matter_testing_infrastructure:matter-testing-module", | ||
| "${chip_root}/src/controller/python:matter-core-module", | ||
| "${chip_root}/src/controller/python:matter-clusters-module", | ||
| "${chip_root}/src/controller/python:matter-repl-module", | ||
| ] | ||
|
|
||
| generate_setup_cfg = { | ||
| name = "matter_iot" | ||
| version = "1.5.0.dev1" | ||
| include_default_pyproject_file = true | ||
| include_extra_files_in_package_data = true | ||
| metadata = { | ||
| description = "Matter IoT python development controller and test package" | ||
| url = "https://github.com/project-chip/connectedhomeip" | ||
| classifiers = [ | ||
| "Intended Audience :: Developers", | ||
| "License :: OSI Approved :: Apache Software License", | ||
| "Programming Language :: Python :: 3", | ||
| ] | ||
| } | ||
| } | ||
|
|
||
| if (chip_support_commissioning_in_controller) { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what does this do? Should python not always look the same (and maybe always be ctrl)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is a way to compile the python stuff to support a python-based server. I don't know if anyone is actually using it. |
||
| lib_name = "_ChipDeviceCtrl.so" | ||
| } else { | ||
| lib_name = "_ChipServer.so" | ||
| } | ||
|
|
||
| public_deps = [ "${chip_root}/src/controller/python:ChipDeviceCtrl" ] | ||
| public_deps += [ | ||
| "${chip_root}/src/python_testing/matter_testing_infrastructure:data_model_zip_1_2", | ||
| "${chip_root}/src/python_testing/matter_testing_infrastructure:data_model_zip_1_3", | ||
| "${chip_root}/src/python_testing/matter_testing_infrastructure:data_model_zip_1_4", | ||
| "${chip_root}/src/python_testing/matter_testing_infrastructure:data_model_zip_1_4_1", | ||
| "${chip_root}/src/python_testing/matter_testing_infrastructure:data_model_zip_1_4_2", | ||
| "${chip_root}/src/python_testing/matter_testing_infrastructure:data_model_zip_1_5", | ||
| ] | ||
|
|
||
| extra_files = [ | ||
| "${root_out_dir}/data_model/zip_1_2.zip > matter/testing/data_model/1.2/allfiles.zip", | ||
| "${root_out_dir}/data_model/zip_1_3.zip > matter/testing/data_model/1.3/allfiles.zip", | ||
| "${root_out_dir}/data_model/zip_1_4.zip > matter/testing/data_model/1.4/allfiles.zip", | ||
| "${root_out_dir}/data_model/zip_1_4_1.zip > matter/testing/data_model/1.4.1/allfiles.zip", | ||
| "${root_out_dir}/data_model/zip_1_4_2.zip > matter/testing/data_model/1.4.2/allfiles.zip", | ||
| "${root_out_dir}/data_model/zip_1_5.zip > matter/testing/data_model/1.5/allfiles.zip", | ||
| "${root_out_dir}/obj/src/controller/python/matter/${lib_name} > matter/${lib_name}", | ||
| ] | ||
| } | ||
|
|
||
| pw_python_wheels("python_wheel_dist") { | ||
| packages = [ ":matter_iot" ] | ||
| directory = "$root_out_dir/dist" | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
follow up for me - either add all the -core -cluster -repl ones here or remove this line