Add idf-component-manager python dependency

This commit is contained in:
Sergei Silnov 2021-05-05 13:10:41 +03:00 committed by Sergei Silnov
parent 2e0ffbd543
commit c6f6bd6a42
3 changed files with 4 additions and 5 deletions

3
.gitignore vendored
View File

@ -88,3 +88,6 @@ build
# lock files for examples and components
dependencies.lock
# managed_components for examples
managed_components

View File

@ -11,6 +11,7 @@ future>=0.15.2
cryptography>=2.1.4
pyparsing>=2.0.3,<2.4.0
pyelftools>=0.22
idf-component-manager>=0.2.99-beta
gdbgui==0.13.2.0
# 0.13.2.1 supports Python 3.6+ only

View File

@ -717,14 +717,9 @@ endmenu\n" >> ${IDF_PATH}/Kconfig
print_status "Compiles with dependencies delivered by component manager"
clean_build_dir
# Make sure that component manager is not installed
pip uninstall -y idf_component_manager
printf "\n#include \"test_component.h\"\n" >> main/main.c
printf "dependencies:\n test_component:\n path: test_component\n git: ${COMPONENT_MANAGER_TEST_REPO}\n" >> main/idf_component.yml
! idf.py build || failure "Build should fail if dependencies are not installed"
pip install ${COMPONENT_MANAGER_PACKAGE} --upgrade || failure "Failed to install component manager"
idf.py reconfigure build || failure "Build didn't succeed with required components installed by package manager"
pip uninstall -y idf_component_manager
rm main/idf_component.yml
git checkout main/main.c