mirror of
https://github.com/espressif/esp-idf.git
synced 2026-04-27 19:13:21 +00: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:
+4
-3
@@ -17,15 +17,16 @@ if not "%MISSING_REQUIREMENTS%" == "" goto :error_missing_requirements
|
||||
set IDF_PATH=%~dp0
|
||||
set IDF_PATH=%IDF_PATH:~0,-1%
|
||||
|
||||
set TARGETS="all"
|
||||
if NOT "%1"=="" set TARGETS=%*
|
||||
for /f "delims=" %%i in ('python.exe "%IDF_PATH%\tools\install_util.py" extract targets "%*"') do set TARGETS=%%i
|
||||
|
||||
echo Installing ESP-IDF tools
|
||||
python.exe "%IDF_PATH%\tools\idf_tools.py" install --targets=%TARGETS%
|
||||
if %errorlevel% neq 0 goto :end
|
||||
|
||||
for /f "delims=" %%i in ('python.exe "%IDF_PATH%\tools\install_util.py" extract features "%*"') do set FEATURES=%%i
|
||||
|
||||
echo Setting up Python environment
|
||||
python.exe "%IDF_PATH%\tools\idf_tools.py" install-python-env
|
||||
python.exe "%IDF_PATH%\tools\idf_tools.py" install-python-env --features=%FEATURES%
|
||||
if %errorlevel% neq 0 goto :end
|
||||
|
||||
echo All done! You can now run:
|
||||
|
||||
Reference in New Issue
Block a user