Skip to content

Commit

Permalink
Merge branch 'bug/propagate_esp_python' into 'master'
Browse files Browse the repository at this point in the history
feat(tools): use ESP_PYTHON during install

Closes IDF-7847

See merge request espressif/esp-idf!24857
  • Loading branch information
dobairoland committed Jul 20, 2023
2 parents 7d03999 + 6a7a731 commit 9d2eb96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tools/detect_python.fish
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
set OLDEST_PYTHON_SUPPORTED_MAJOR 3
set OLDEST_PYTHON_SUPPORTED_MINOR 7

set -x ESP_PYTHON python
set -q ESP_PYTHON; or set PYLIST python3 python python3.7 python3.8 python3.9 python3.10 python3.11 python3.12
set -q ESP_PYTHON; or set -x ESP_PYTHON python

for p_cmd in python3 python python3.7 python3.8 python3.9 python3.10 python3.11 python3.12;
for p_cmd in $PYLIST;
$p_cmd --version >/dev/null 2>&1; or continue
echo "Checking \"$p_cmd\" ..."

Expand Down
5 changes: 3 additions & 2 deletions tools/detect_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
OLDEST_PYTHON_SUPPORTED_MAJOR=3
OLDEST_PYTHON_SUPPORTED_MINOR=7

ESP_PYTHON=python
PYLIST=${ESP_PYTHON:-python3 python python3.7 python3.8 python3.9 python3.10 python3.11 python3.12}
ESP_PYTHON=${ESP_PYTHON:-python}

for p_cmd in python3 python python3.7 python3.8 python3.9 python3.10 python3.11 python3.12; do
for p_cmd in $PYLIST; do
$p_cmd --version >/dev/null 2>&1 || continue
echo "Checking \"$p_cmd\" ..."

Expand Down

0 comments on commit 9d2eb96

Please sign in to comment.