Author ncoghlan
Recipients Anthony Sottile, Chris Billington, Ethan Smith, Ivan.Pozdeev, SilentGhost, __Vano, barry, brett.cannon, christian.heimes, eric.smith, eric.snow, jaraco, mhammond, ncoghlan, pitrou, takluyver, terry.reedy, vstinner
Date 2019-01-15.12:53:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1547556784.39.0.0948636956195.issue33944@roundup.psfhosted.org>
In-reply-to
Content
`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.
History
Date User Action Args
2019-01-15 12:53:05ncoghlansetrecipients: + ncoghlan, mhammond, barry, brett.cannon, terry.reedy, jaraco, pitrou, vstinner, eric.smith, christian.heimes, SilentGhost, __Vano, eric.snow, takluyver, Ivan.Pozdeev, Anthony Sottile, Ethan Smith, Chris Billington
2019-01-15 12:53:04ncoghlansetmessageid: <1547556784.39.0.0948636956195.issue33944@roundup.psfhosted.org>
2019-01-15 12:53:04ncoghlanlinkissue33944 messages
2019-01-15 12:53:04ncoghlancreate