1#!/usr/bin/env bash 2 3set -e 4set -u 5 6export IDF_PATH=$(cd $(dirname $0); pwd) 7 8echo "Detecting the Python interpreter" 9. ${IDF_PATH}/tools/detect_python.sh 10 11echo "Installing ESP-IDF tools" 12${ESP_PYTHON} ${IDF_PATH}/tools/idf_tools.py install 13 14echo "Installing Python environment and packages" 15${ESP_PYTHON} ${IDF_PATH}/tools/idf_tools.py install-python-env 16 17basedir="$(dirname $0)" 18echo "All done! You can now run:" 19echo "" 20echo " . ${basedir}/export.sh" 21echo "" 22