Installing Python code with packaged in Nerves

Has anyone done a pip install -r requirements.txt as part of the mix firmware build? I know I can add Python via Buildroot packages and I know the glorious future may include pythonx.

I suppose it is easier to do the pip install with the right environment while building the custom system? If the Python part changes a lot this would make for a lot of system churn which seems less nice.

I guess I could make a way to build the python env and deps on a running device/system and then package that up as it should then run on any matching system? Could be an artifact/archive in NervesHub or something to that effect.

I would be curious about what people have tried :slight_smile:

1 Like