Nick Coghlan <ncogh...@gmail.com> added the comment:

`site.addsitedir` is called for every site-packages directory (whether global, 
within a venv, or at the user level), so my proposal above covers appending 
multiple segments.

Linux distros approach to handling this is terrible because they dump all their 
system packages into a single global site-packages, leading to the every 
growing sys.path problem that Barry is concerned about.

However, that's entirely the fault of distro packaging policies, and can be 
remedied in a far superior way by switching distros to a model where they 
create a venv per application, and then use .pth files to link in the system 
packages that they actually want visible to that application.

"Some users don't want to use virtual environments appropriately" is an 
incredibly poor reason for breaking a perfectly valid feature.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33944>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to