From 05ce17b20f3e41ec5548f0dfd934ec4ea953617d Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Wed, 11 Sep 2024 10:44:02 -0400 Subject: [PATCH] More fixes for new python, where pip cannot just be used --- .github/workflows/build.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d687d883914206..83ecc7e00a2192 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -316,9 +316,10 @@ jobs: run: | scripts/run_in_build_env.sh 'virtualenv pyenv' source pyenv/bin/activate - pip3 install ./out/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl - pip3 install ./out/controller/python/chip_clusters-0.0-py3-none-any.whl - pip3 install ./out/controller/python/chip_repl-0.0-py3-none-any.whl + python -m ensurepip --upgrade + python -m pip install ./out/controller/python/chip_core-0.0-cp37-abi3-linux_x86_64.whl + python -m pip install ./out/controller/python/chip_clusters-0.0-py3-none-any.whl + python -m pip install ./out/controller/python/chip_repl-0.0-py3-none-any.whl - name: Run Python tests shell: bash @@ -334,7 +335,8 @@ jobs: scripts/run_in_build_env.sh 'scripts/examples/gn_build_example.sh examples/chip-tool out/' scripts/run_in_build_env.sh 'virtualenv pyenv' source pyenv/bin/activate - pip3 install -r scripts/setup/requirements.setuppayload.txt + python -m ensurepip --upgrade + python -m pip install -r scripts/setup/requirements.setuppayload.txt python3 src/setup_payload/tests/run_python_setup_payload_test.py out/chip-tool build_linux_python_lighting_device: