tools: Prefer python3 during install and export
Install and export script should work on systems without "python" executable. Closes https://github.com/espressif/esp-idf/pull/6471 Closes https://github.com/espressif/esp-idf/issues/6532 Related to https://github.com/espressif/esp-idf/issues/6421 and https://github.com/espressif/arduino-esp32/issues/4717
This commit is contained in:
+5
-2
@@ -4,11 +4,14 @@ set basedir $PWD
|
||||
|
||||
set -x IDF_PATH $basedir
|
||||
|
||||
echo "Detecting the Python interpreter"
|
||||
source "$IDF_PATH"/tools/detect_python.fish
|
||||
|
||||
echo "Installing ESP-IDF tools"
|
||||
"$IDF_PATH"/tools/idf_tools.py install
|
||||
"$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py install
|
||||
|
||||
echo "Installing Python environment and packages"
|
||||
"$IDF_PATH"/tools/idf_tools.py install-python-env
|
||||
"$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py install-python-env
|
||||
|
||||
echo "All done! You can now run:"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user