I was curious how hard it'd be to implement this and it turned out to be very simple so I've prepared a PR: https://src.fedoraproject.org/rpms/python-pip/pull-request/67
Lumír
On 7/9/20 1:48 PM, Petr Viktorin wrote:
On 2020-07-07 19:54, Miro Hrončok wrote:
- Add a custom --no-warn-root-privileges option
- Hide the warning when $RPM_BUILD_ROOT is set.
- Introduce an environment variable (e.g. PIP_NOWARN_ROOT)
- Introduce our warning upstream, but make it opt-in only.
- Hide the warning when --root is set.
What do you think?
I like option 5 as well. It's just a warning, not an error, because there are cases where you "know what you're doing", such as containers/VMs, where "sudo pip" may be appropriate. All uses of --root that come to my mind are such cases.
Users who follow tutorials without "knowing what they're doing" are very unlikely to use --root. _______________________________________________ python-devel mailing list -- python-devel@lists.fedoraproject.org To unsubscribe send an email to python-devel-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproje...