nixpkgs-esp-dev icon indicating copy to clipboard operation
nixpkgs-esp-dev copied to clipboard

Python environment does not change to match when overriding ESP-IDF version

Open mirrexagon opened this issue 2 years ago • 7 comments

#24 points out that since #23 changed from using mach-nix to dynamically read the requirements file to manually packaging and including the necessary Python packages, overriding the ESP-IDF version (see examples/shell-override-versions.nix) doesn't adapt the Python environment, making overriding the version less useful.

mirrexagon avatar Jul 05 '23 07:07 mirrexagon

I would like an automated way to check `requirements.core.txt, the latest constraints file (eg. https://dl.espressif.com/dl/esp-idf/espidf.constraints.v5.1.txt), and the latest versions of those packages on PyPi against the Python packages I have packaged here, to make it easy to see what is missing or could be updated.

mirrexagon avatar Jul 05 '23 07:07 mirrexagon

Note to self, could https://github.com/nix-community/nix-init help us?

mirrexagon avatar Jul 07 '23 12:07 mirrexagon

I'm running into this issue when trying to compile a project depending on ESP IDF 5.0.1: the Python dependencies are declared incorrectly. Is there any advice on compatibility with a toolchain this old? Going through the commit history, it seems at one point a parsing on the requirements.txt was done, but has since been converted into a static list of dependencies?

jleightcap avatar Jul 02 '24 13:07 jleightcap

Yeah, I re-did the Python packages because we were using mach-nix before and it isn't supported anymore and started breaking anyway. I'm not sure what another good solution is right now to adapting the Python environment to the overridden version.

mirrexagon avatar Aug 26 '24 02:08 mirrexagon