wewbull@feddit.uktoPython@programming.dev•Yes, you should use a Python venv in a container like dockerEnglish
2·
15 days agoWhat really annoys me is they purposely broke per-user and local installation. Fine, system wise installation isn’t a good idea when it’s already managed by another package manager, but user installation is my domain.
The reason they did this is because a package installed by the user can be active when a system tool is called and break the system tool. The distro developers went “Oh, we should force all user code into venvs so that our code is safe”.
Completely and utterly backwards. The protected code needs to be inside the defensive wall. The user should be allowed to do anything in the knowledge that they can’t inadvertently change the OS. When a system tool is called it should only have system libraries on it’s Python Path.
So the problem here is that you can inject code into a system python process because they run with the user’s python install location on their path.
They’ve fixed the wrong “root cause”.