SmingHub / Sming

Sming - powerful open source framework simplifying the creation of embedded C++ applications.
https://sming.readthedocs.io
GNU Lesser General Public License v3.0
1.45k stars 349 forks source link

Fix esp32 IDF paths #2825

Closed mikee47 closed 1 week ago

mikee47 commented 1 week ago

This PR simplifies and eliminates conflict between the ESP32 IDF python installation and the one Sming uses.

esp32 IDF uses its own virtual python environment and that location gets added to the system path. That means if our PYTHON variable doesn't contain an absolute path (e.g. python3, the default) then for esp32 builds only it ends up using the IDF python instead. Which is problematic.

So, do we really need all that crud on the path? Turns out we don't. This PR gets rid of stuff which isn't necessary.

NB. Checked current IDF behaviour and their export script still puts everything in the PATH.

A further simplification is removal of core python requirements from the main Python environment. These aren't required.