Closed dobairoland closed 1 year ago
PTAL @georgik @JurajSadel
Update of existing ESP-IDF which is cloned from master is not working. The installer blocks installation on ESP-IDF directory selection. Thnx @mfialaf for finding the issue.
There has been some recent changes related to this: https://github.com/espressif/esp-idf/commit/fddc73759ebb6f1b00306671474fca7ef90784be.
IMO The repo with the constraint file should be published as a git repo. Handling this extra dependency by downloading it from the https location is not very systematic and fragile. Also, including the version number in the file name make things unnecessarily complex. Consider using another solution which has more straightforward maintenance in the future.
ESP-IDF v5.0 will soon start to use a constraint file for installing Python packages (https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.0.txt). The offline installer would probably want to bundle this file and install the Python environment with care so it would remain "offline".
The user should be asked which desired features should be supported.
core
is mandatory, and currently there is only one optional one:gdbgui
. We might introduce more in the near future.The online installer is pretty straightforward. Run
install.bat
for just the core features, or runinstall.bat --enable-gdbgui
for supportinggdbgui
as well. The correspondingidf_tools.py
commands areidf.py install-python-env
andidf.py install-python-env --features=core,gdbgui
.The process could be split up in order to implement offline installing.
espidf.constraints.vX.Y.txt
into~/.espressif
wherevX.Y
is the ESP-IDF version andX >= 5
.<virtualenv_python> -m pip install -c ~/.espressif/espidf.constraints.vX.Y.txt -r $IDF_PATH/requirements.core.txt -r $IDF_PATH/requirements.gdbgui.txt
. Omitrequirements.gdbgui.txt
if the feature is not desired.$IDF_TOOLS/tools/idf_tools.py install-python-env --no-constraints --features=core,gdbgui
to updateidf-env.json
with the features. Alternatively, the file can be edited manually without running this command. Omitgdbgui
if that feature is not required.Please excuse my Unix-style commands. Please let me know if I can make this more comfortable for you on the ESP-IDF side or can provide more information. Thanks!