install.fish 575 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/env fish
  2. set basedir (realpath (dirname (status -f)))
  3. set -x IDF_PATH $basedir
  4. echo "Detecting the Python interpreter"
  5. source "$IDF_PATH"/tools/detect_python.fish
  6. if not set -q argv[1]
  7. set TARGETS "all"
  8. else
  9. set TARGETS $argv[1]
  10. end
  11. echo "Installing ESP-IDF tools"
  12. "$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py install --targets=$TARGETS
  13. exit 1
  14. end
  15. echo "Installing Python environment and packages"
  16. "$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py install-python-env
  17. echo "All done! You can now run:"
  18. echo ""
  19. echo " . "$basedir"/export.fish"
  20. echo ""