mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-19 23:45:28 +02:00
Tools: Improve the Python package system
Introduce features into the Python package management system & manage package versions outside of ESP-IDF repo.
This commit is contained in:
+5
-6
@@ -7,17 +7,16 @@ set -x IDF_PATH $basedir
|
||||
echo "Detecting the Python interpreter"
|
||||
source "$IDF_PATH"/tools/detect_python.fish
|
||||
|
||||
if not set -q argv[1]
|
||||
set TARGETS "all"
|
||||
else
|
||||
set TARGETS $argv[1]
|
||||
end
|
||||
set TARGETS ("$ESP_PYTHON" "$IDF_PATH"/tools/install_util.py extract targets $argv) || exit 1
|
||||
|
||||
echo "Installing ESP-IDF tools"
|
||||
"$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py install --targets=$TARGETS
|
||||
or exit 1
|
||||
|
||||
set FEATURES ("$ESP_PYTHON" "$IDF_PATH"/tools/install_util.py extract features $argv) || exit 1
|
||||
|
||||
echo "Installing Python environment and packages"
|
||||
"$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py install-python-env
|
||||
"$ESP_PYTHON" "$IDF_PATH"/tools/idf_tools.py install-python-env --features=$FEATURES
|
||||
|
||||
echo "All done! You can now run:"
|
||||
echo ""
|
||||
|
||||
Reference in New Issue
Block a user