[Distutils] Re: sudo pip install: install pip files into /usr/local on Linux?

2018-05-23 Thread Wes Turner
On Wednesday, May 23, 2018, Michael Sarahan wrote: > > > On Wed, May 23, 2018 at 3:45 PM, Wes Turner wrote: > >> >> >> On Wednesday, May 23, 2018, Michael Sarahan >> wrote: >> >>> Thanks for starting this discussion, Victor! This topic is something >>> we're very interested in at Anaconda. >>>

[Distutils] Re: sudo pip install: install pip files into /usr/local on Linux?

2018-05-23 Thread Michael Sarahan
On Wed, May 23, 2018 at 3:45 PM, Wes Turner wrote: > > > On Wednesday, May 23, 2018, Michael Sarahan wrote: > >> Thanks for starting this discussion, Victor! This topic is something >> we're very interested in at Anaconda. >> >> I'd like to generalize the problem statement to the question of "h

[Distutils] Re: sudo pip install: install pip files into /usr/local on Linux?

2018-05-23 Thread Alex Walters
From: Wes Turner Sent: Wednesday, May 23, 2018 4:37 PM To: Alex Walters Cc: Victor Stinner ; distutils-sig@python.org Subject: Re: [Distutils] sudo pip install: install pip files into /usr/local on Linux? On Wednesday, May 23, 2018, Alex Walters mailto:tritium-l...@sdamon.com> > wro

[Distutils] Re: sudo pip install: install pip files into /usr/local on Linux?

2018-05-23 Thread Wes Turner
On Wednesday, May 23, 2018, Michael Sarahan wrote: > Thanks for starting this discussion, Victor! This topic is something > we're very interested in at Anaconda. > > I'd like to generalize the problem statement to the question of "how can > we make pip behave well when it is sharing package mana

[Distutils] Re: sudo pip install: install pip files into /usr/local on Linux?

2018-05-23 Thread Wes Turner
On Wednesday, May 23, 2018, Alex Walters wrote: > I think the obvious, if socially hard solution, is to make pip panic when > it > sees its being run as root (without, perhaps, a flag to tell pip "No, I > really mean it, run as root"), and default to --user. Maybe default to --user if not in a

[Distutils] Re: sudo pip install: install pip files into /usr/local on Linux?

2018-05-23 Thread Michael Sarahan
Thanks for starting this discussion, Victor! This topic is something we're very interested in at Anaconda. I'd like to generalize the problem statement to the question of "how can we make pip behave well when it is sharing package management with something else? Similarly, how can we make the so

[Distutils] Re: sudo pip install: install pip files into /usr/local on Linux?

2018-05-23 Thread Alex Walters
I think the obvious, if socially hard solution, is to make pip panic when it sees its being run as root (without, perhaps, a flag to tell pip "No, I really mean it, run as root"), and default to --user. It is not a good idea to install packages system wide with pip for reasons more than just clobb

[Distutils] sudo pip install: install pip files into /usr/local on Linux?

2018-05-23 Thread Victor Stinner
Hi, pip is currently not well integrated on Linux: it conflicts with the system package manager like apt or rpm. When pip writes files into /usr, it can replace files written by the system package manager and so create different kind of issues. For example, if you check the system integry, you