On 2021-02-23 9:45 p.m., Random832 wrote:
I was reading a discussion thread 
<https://gist.github.com/tiran/2dec9e03c6f901814f6d1e8dad09528e> about various 
issues with the Debian packaged version of Python, and the following statement stood 
out for me as shocking:

Christian Heimes wrote:
> Core dev and PyPA has spent a lot of effort in promoting venv because we 
don't want users to break their operating system with sudo pip install.

I don't think sudo pip install should break the operating system. And I think if it does, 
that problem should be solved rather than merely advising users against using it. And why 
is it, anyway, that distributions whose package managers can't coexist with pip-installed 
packages don't ever seem to get the same amount of flak for "damaging python's 
brand" as Debian is getting from some of the people in the discussion thread? Why is 
it that this community is resigned to recommending a workaround when distributions decide 
the site-packages directory belongs to their package manager rather than pip, instead of 
bringing the same amount of fiery condemnation of that practice as we apparently have for 
*checks notes* splitting parts of the stdlib into optional packages? Why demand that pip 
be present if we're not going to demand that it works properly?

I think that installing packages into the actual python installation, both via 
distribution packaging tools and pip [and using both simultaneously - the 
Debian model of separated dist-packages and site-packages folders seems like a 
reasonable solution to this problem] can and should be a supported paradigm, 
and that virtual environments [or more extreme measures such as shipping an 
entire python installation as part of an application's deployment] should 
ideally be reserved for the rare corner cases where that doesn't work for some 
reason.

How is it that virtual environments have become so indispensable, that no-one 
considers installing libraries centrally to be a viable model anymore? Are 
library maintainers making breaking changes too frequently, reasoning that if 
someone needs the old version they can just venv it? Is there some other cause?

OS-wide venv for OS packages, sudo pip install for pip packages? Generally you want to use OS packages for OS-packaged apps, so a venv is fine in that case.

_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/KMRNKSVEPHAXA7BHFT4PWX4EKWYUF4G7/
Code of Conduct: http://python.org/psf/codeofconduct/
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/SE6UR2KHIB5ODRAVIVTULMFFIAGKPOFG/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to