While I consider venvs easy and cool, this just moves the barrier for
the users a little bit higher. We (Fedora Python SIG) are fighting users
that run `sudo pip install` all the time (because the Interwebz are full
of such instructions). The users might be willing to listen to "please,
don't use pip with sudo, use --user instead". However, if you tell them
"learn how to use a venv", they'll just stick with sudo.
> I propose to deprecate the feature and remove it in Python 4.0.
We would very much like to see --user the default rather than having it
removed.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
On 13.1.2018 18:06, Christian Heimes wrote:
> Nowadays Python has venv in the standard library. The user-specific
> site-packages directory is no longer that useful. I would even say it's
> causing more trouble than it's worth. For example it's common for system
> script to use "#!/usr/bin/python3" shebang without -s or -I option.
While I consider venvs easy and cool, this just moves the barrier for
the users a little bit higher. We (Fedora Python SIG) are fighting users
that run `sudo pip install` all the time (because the Interwebz are full
of such instructions). The users might be willing to listen to "please,
don't use pip with sudo, use --user instead". However, if you tell them
"learn how to use a venv", they'll just stick with sudo.
> I propose to deprecate the feature and remove it in Python 4.0.
We would very much like to see --user the default rather than having it
removed.
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
Python-Dev mailing list
Pytho...@python.org
https://mail.python.org/mailman/listinfo/python-dev
I’m generally +1, though I don’t see an easy migration path. Moving to a node.js project model might be feasible, but I suspect our real solution will end up having to be ensuring use of -s where it’s needed.
Top-posted from my Windows phone
I would suggest throwing this to -ideas, rather than just keeping it in -dev
as there is a much wider community of users and usecases in -ideas.
... and -ideas will shoot it down because user installs are too useful. It
is also my understanding that it is the desire of PyPA to eventually have
pip default to --user when run outside of a virtualenv (to mitigate people
running sudo pip). Eliminating user installs would change the situation
from one where, with pip install --user, one can recoverably break their
system to one, with sudo pip install, one can un-recoverably break their
system.
Hi,
PEP 370 [1] was my first PEP that got accepted. I created it exactly one
decade and two days ago for Python 2.6 and 3.0.
Fast forward 10 years...
Nowadays Python has venv in the standard library. The user-specific
site-packages directory is no longer that useful. I would even say it's
causing more trouble than it's worth. For example it's common for system
script to use "#!/usr/bin/python3" shebang without -s or -I option.
I propose to deprecate the feature and remove it in Python 4.0.
Same for most Fedora scripts. :/
Christian