lawik
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 ![]()
Most Liked
lawik
I think pythonx should cover the need outside of changing the nerves system. Even if you don’t use it to run the code (maybe you need more concurrency) I think you could start ports based on the uv setup from pythonx.
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex










