2020-03-16 13:22:43 +00:00
|
|
|
#!/usr/bin/env fish
|
|
|
|
|
2021-03-15 01:22:41 +00:00
|
|
|
set basedir (realpath (dirname (status -f)))
|
2020-03-16 13:22:43 +00:00
|
|
|
|
|
|
|
set -x IDF_PATH $basedir
|
|
|
|
|
2021-02-02 12:20:09 +00:00
|
|
|
echo "Detecting the Python interpreter"
|
|
|
|
source "$IDF_PATH"/tools/detect_python.fish
|
|
|
|
|
2021-04-26 19:34:48 +00:00
|
|
|
if not set -q argv[1]
|
|
|
|
set TARGETS "all"
|
|
|
|
else
|
|
|
|
set TARGETS $argv[1]
|
|
|
|
end
|
2020-03-16 13:22:43 +00:00
|
|
|
echo "Installing ESP-IDF tools"
|
2021-04-26 19:34:48 +00:00
|
|
|
"$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py install --targets=$TARGETS
|
2021-07-25 23:15:42 +00:00
|
|
|
or exit 1
|
2020-03-16 13:22:43 +00:00
|
|
|
|
|
|
|
echo "Installing Python environment and packages"
|
2021-02-02 12:20:09 +00:00
|
|
|
"$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py install-python-env
|
2020-03-16 13:22:43 +00:00
|
|
|
|
|
|
|
echo "All done! You can now run:"
|
|
|
|
echo ""
|
|
|
|
echo " . "$basedir"/export.fish"
|
2020-11-10 07:40:01 +00:00
|
|
|
echo ""
|