docker-image
docker-image copied to clipboard
RFC: pip install west and PEP 668
I recently ran into a problem with Debian 12 (bookworm) on a private Docker environment for Zephyr and decided to see how this repo solves it. Short answer: it doesn't.
https://pythonspeed.com/articles/externally-managed-environment-pep-668/
Right now the Dockerfiles are using ubuntu-22.04 which isn't affected by PEP 668. However, the next Ubuntu LTS almost certainly will be. Solutions are fairly stark:
- Wait for Ubuntu to package
westand the other Zephyr tools so it can be installed withaptrather thanpip - Run all Zephyr tools inside a Python virtual environment
- Invoke the
--break-system-packagesflag on the assumption that everything will probably(?) be ok
- Run all Zephyr tools inside a Python virtual environment
I would say this would be the most sensible solution.