diff --git a/scripts/ci.requirements.txt b/scripts/ci.requirements.txt index 7525036441..296c1faaf0 100644 --- a/scripts/ci.requirements.txt +++ b/scripts/ci.requirements.txt @@ -17,3 +17,9 @@ pylint == 2.4.4; platform_system == 'Linux' # https://github.com/Mbed-TLS/mbedtls-framework/issues/50 # mypy 0.942 is the version in Ubuntu 22.04. mypy == 0.942; platform_system == 'Linux' + +# More requirements for scripts in the framework that might not work in +# older versions of Python. Note that requirements that are not available +# in the oldest version of Python on our CI must be annodated with +# "python >= ...". +-r ../framework/util/requirements.txt diff --git a/tests/scripts/components-basic-checks.sh b/tests/scripts/components-basic-checks.sh index 73636ee66c..72bd2c036d 100644 --- a/tests/scripts/components-basic-checks.sh +++ b/tests/scripts/components-basic-checks.sh @@ -14,6 +14,16 @@ component_check_recursion () { ./framework/scripts/recursion.pl library/*.c } +support_check_generated_files () { + # Add requirements on the Python installation here for + # the sake of check_committed_generated_files.py in mbedtls. + # + # Check the Python version, not the presence of the package, + # because the CI runs `all.sh --list-components` outside of the + # venv that has our desired packages. + : +} + component_check_generated_files () { msg "Check make_generated_files.py consistency" $MAKE_COMMAND neat