@@ -175,22 +175,6 @@ tracing_options="matter_log_json_payload_hex=true matter_log_json_payload_decode
175
175
176
176
gn --root=" $CHIP_ROOT " gen " $OUTPUT_ROOT " --args=" $tracing_options chip_detail_logging=$chip_detail_logging chip_project_config_include_dirs=[\" //config/python\" ] $chip_mdns_arg $chip_case_retry_arg $pregen_dir_arg chip_config_network_layer_ble=$enable_ble chip_enable_ble=$enable_ble chip_crypto=\" boringssl\" "
177
177
178
- function ninja_target() {
179
- # Print the ninja target required to build a gn label.
180
- local GN_LABEL=" $1 "
181
- local NINJA_TARGET=" $( gn ls " $OUTPUT_ROOT " --as=output " $GN_LABEL " ) "
182
- echo " $NINJA_TARGET "
183
- }
184
-
185
- function wheel_output_dir() {
186
- # Print the wheel output directory for a pw_python_package or
187
- # pw_python_distribution. The label must end in "._build_wheel".
188
- local GN_LABEL=" $1 "
189
- local NINJA_TARGET=" $( ninja_target " $GN_LABEL " ) "
190
- local WHEEL_DIR=" $OUTPUT_ROOT " /" $( dirname " $NINJA_TARGET " ) /$( basename -s .stamp " $NINJA_TARGET " ) "
191
- echo " $WHEEL_DIR "
192
- }
193
-
194
178
# Compile Python wheels
195
179
ninja -C " $OUTPUT_ROOT " python_wheels
196
180
@@ -200,6 +184,11 @@ WHEEL=("$OUTPUT_ROOT"/controller/python/chip*.whl)
200
184
# Add the matter_testing_infrastructure wheel
201
185
WHEEL+=(" $OUTPUT_ROOT " /python/obj/src/python_testing/matter_testing_infrastructure/chip-testing._build_wheel/chip_testing-* .whl)
202
186
187
+ if [ " $install_pytest_requirements " = " yes" ]; then
188
+ # Add the matter_yamltests_distribution wheel
189
+ WHEEL+=(" $OUTPUT_ROOT " /obj/scripts/matter_yamltests_distribution._build_wheel/matter_yamltests-* .whl)
190
+ fi
191
+
203
192
if [ -n " $extra_packages " ]; then
204
193
WHEEL+=(" $extra_packages " )
205
194
fi
@@ -221,14 +210,7 @@ if [ -n "$install_virtual_env" ]; then
221
210
" $ENVIRONMENT_ROOT " /bin/python -m pip install --upgrade " ${WHEEL[@]} "
222
211
223
212
if [ " $install_pytest_requirements " = " yes" ]; then
224
- YAMLTESTS_GN_LABEL=" //scripts:matter_yamltests_distribution._build_wheel"
225
- # Add wheels from pw_python_package or pw_python_distribution templates.
226
- YAMLTEST_WHEEL=(
227
- " $( ls -tr " $( wheel_output_dir " $YAMLTESTS_GN_LABEL " ) " /* .whl | head -n 1) "
228
- )
229
-
230
213
echo_blue " Installing python test dependencies ..."
231
- " $ENVIRONMENT_ROOT " /bin/pip install --upgrade " ${YAMLTEST_WHEEL[@]} "
232
214
" $ENVIRONMENT_ROOT " /bin/pip install -r " $CHIP_ROOT /scripts/tests/requirements.txt"
233
215
" $ENVIRONMENT_ROOT " /bin/pip install -r " $CHIP_ROOT /src/python_testing/requirements.txt"
234
216
fi
0 commit comments