You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This is a port of detect_python.sh. More information are provided there.
set OLDEST_PYTHON_SUPPORTED_MAJOR 3
set OLDEST_PYTHON_SUPPORTED_MINOR 8
set-x ESP_PYTHON python
for p_cmd in python3 python python3.8 python3.9 python3.10 python3.11 python3.12;
$p_cmd--version>/dev/null 2>&1; orcontinue
echo"Checking \"$p_cmd\" ..."
$p_cmd-c"import sys; exit(1) if sys.version_info.major < int(\"$OLDEST_PYTHON_SUPPORTED_MAJOR\") else exit(0);"; orcontinue
$p_cmd-c"import sys; exit(1) if sys.version_info.minor < int(\"$OLDEST_PYTHON_SUPPORTED_MINOR\") else exit(0);"; orcontinue
set ESP_PYTHON $p_cmd
break
end
test-n"$ESP_PYTHON"; orecho"Python $OLDEST_PYTHON_SUPPORTED_MAJOR.$OLDEST_PYTHON_SUPPORTED_MINOR+ is not installed! Please see the documentation for how to install it."