diff --git a/BUILD.gn b/BUILD.gn index bf4de718b5aa34..5bb1f218fe581c 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -120,10 +120,7 @@ if (current_toolchain != "${dir_pw_toolchain}/default:default") { } pw_python_pip_install("pip_install_matter_packages") { - packages = [ - "//examples/common/pigweed/rpc_console:chip_rpc_distribution", - "//scripts:matter_yamltests_distribution", - ] + packages = [ "//examples/common/pigweed/rpc_console:chip_rpc_distribution" ] } # Python packages installed during bootstrap. diff --git a/scripts/tests/chiptest/yamltest_with_chip_repl_tester.py b/scripts/tests/chiptest/yamltest_with_chip_repl_tester.py index 44dd27de13a185..625b4d95b149fa 100644 --- a/scripts/tests/chiptest/yamltest_with_chip_repl_tester.py +++ b/scripts/tests/chiptest/yamltest_with_chip_repl_tester.py @@ -27,6 +27,19 @@ # isort: on +# ensure matter IDL is availale for import, otherwise set relative paths +try: + from matter_idl import matter_idl_types +except: + SCRIPT_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), '../..')) + import sys + + sys.path.append(os.path.join(SCRIPT_PATH, 'py_matter_idl')) + sys.path.append(os.path.join(SCRIPT_PATH, 'py_matter_yamltests')) + + from matter_idl import matter_idl_types + + import chip.CertificateAuthority import chip.native import click