docker-image icon indicating copy to clipboard operation
docker-image copied to clipboard

RFC: pip install west and PEP 668

Open Chris-StJohn-Bose opened this issue 2 years ago • 1 comments

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 west and the other Zephyr tools so it can be installed with apt rather than pip
  • Run all Zephyr tools inside a Python virtual environment
  • Invoke the --break-system-packages flag on the assumption that everything will probably(?) be ok

Chris-StJohn-Bose avatar Jul 06 '23 10:07 Chris-StJohn-Bose

  • Run all Zephyr tools inside a Python virtual environment

I would say this would be the most sensible solution.

stephanosio avatar Feb 07 '24 14:02 stephanosio