Merge branch 'contrib/github_pr_9749' into 'master'

Fix export.sh failure if python 2.x is unavailable (GitHub PR)

Closes IDFGH-8261

See merge request espressif/esp-idf!20154
This commit is contained in:
Roland Dobai 2022-09-14 23:26:50 +08:00
commit 201dbb0e27
2 changed files with 2 additions and 3 deletions

View File

@ -47,7 +47,7 @@ function __main
set -x PATH "$IDF_ADD_PATHS_EXTRAS":"$PATH"
echo "Checking if Python packages are up to date..."
python "$IDF_PATH"/tools/idf_tools.py check-python-dependencies || return 1
"$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py check-python-dependencies || return 1
set added_path_variables
for entry in $PATH;

View File

@ -134,9 +134,8 @@ __main() {
eval "${idf_exports}"
export PATH="${IDF_ADD_PATHS_EXTRAS}:${PATH}"
__verbose "Using Python interpreter in $(which python)"
__verbose "Checking if Python packages are up to date..."
python "${IDF_PATH}/tools/idf_tools.py" check-python-dependencies || return 1
"$ESP_PYTHON" "${IDF_PATH}/tools/idf_tools.py" check-python-dependencies || return 1
if [ -n "$BASH" ]
then