setup: Install python dependencies based on idf version

This commit is contained in:
Shubham Patil
2024-08-23 13:15:38 +05:30
parent a964a55de9
commit d5184ba9fe
2 changed files with 20 additions and 1 deletions
+9 -1
View File
@@ -59,7 +59,15 @@ deactivate
echo ""
echo "Installing python dependencies for Matter"
echo ""
python3 -m pip install -r ${ESP_MATTER_PATH}/requirements.txt
# Install python dependencies based on idf version
if [[ $(git -C $IDF_PATH describe) == v4.4* ]]; then
echo "Installing requirements from requirements_idf_v4.4.txt"
python3 -m pip install -r ${ESP_MATTER_PATH}/requirements_idf_v4.4.txt
else
echo "Installing requirements from requirements.txt"
python3 -m pip install -r ${ESP_MATTER_PATH}/requirements.txt
fi
echo "All done! You can now run:"
echo ""
+11
View File
@@ -0,0 +1,11 @@
# matter idl
lark==1.1.2
stringcase==1.2.0
# jinja2 is removed in IDF v5.0 environment, but it is required for matter building
jinja2==3.0.1
# https://github.com/psf/requests/blob/main/HISTORY.md#2300-2023-05-03
urllib3<2
# mfg_tool
esp-matter-mfg-tool