Re: Making sudo pip Safe

2016-12-16 Thread Michal Cyprian
this work. Michal Cyprian - Original Message - From: "Petr Viktorin" To: python-devel@lists.fedoraproject.org, "Michal Cyprian" Sent: Monday, December 12, 2016 11:57:23 AM Subject: Re: Making sudo pip Safe On 12/09/2016 06:09 PM, Orion Poplawski wrote: > On 12/07/201

Re: Making sudo pip Safe

2016-12-14 Thread Donald Stufft
> On Dec 13, 2016, at 9:29 AM, Nick Coghlan wrote: > > On 13 December 2016 at 00:12, Neal Becker wrote: >> Currently, pip3 --user installed stuff can be updated with: >> pip3 install --upgrade --user $(pip3 list --user -o | cut -f 1 --delim=' ') >> >> But that isn't obvious/discoverable > >

Re: Making sudo pip Safe

2016-12-13 Thread Nick Coghlan
On 13 December 2016 at 00:12, Neal Becker wrote: > Currently, pip3 --user installed stuff can be updated with: > pip3 install --upgrade --user $(pip3 list --user -o | cut -f 1 --delim=' ') > > But that isn't obvious/discoverable Note that upstream considers a bulk-upgrade command to be gated on

Re: Making sudo pip Safe

2016-12-13 Thread Nick Coghlan
On 12 December 2016 at 19:59, Tomas Orsava wrote: > On 12/12/2016 05:39 AM, Nick Coghlan wrote: >> On 11 December 2016 at 01:33, Donald Stufft wrote: >> The benefit of that approach is that it would not only solve the >> conflict between dnf and pip at the Fedora level, but also move the >> packa

Re: Making sudo pip Safe

2016-12-12 Thread Neal Becker
Currently, pip3 --user installed stuff can be updated with: pip3 install --upgrade --user $(pip3 list --user -o | cut -f 1 --delim=' ') But that isn't obvious/discoverable On Mon, Dec 12, 2016 at 8:48 AM Petr Viktorin wrote: > On 12/12/2016 01:39 PM, Neal Becker wrote: > > I am one who was bad

Re: Making sudo pip Safe

2016-12-12 Thread Petr Viktorin
On 12/12/2016 01:39 PM, Neal Becker wrote: I am one who was badly bitten by pip install into system in the past, and I have been using pip --user since. But there is one big usability issue here, there isn't a trivially simple way to make sure packages installed by pip are updated, much less aut

Re: Making sudo pip Safe

2016-12-12 Thread Neal Becker
I am one who was badly bitten by pip install into system in the past, and I have been using pip --user since. But there is one big usability issue here, there isn't a trivially simple way to make sure packages installed by pip are updated, much less automatically updated. I think it would be impo

Re: Making sudo pip Safe

2016-12-12 Thread Petr Viktorin
On 12/09/2016 06:09 PM, Orion Poplawski wrote: On 12/07/2016 05:53 AM, Michal Cyprian wrote: Hello, there is a long-standing problem that `sudo pip install` cannot be safely used in Fedora. Many users don't know about this and break python packages on theirs systems. Packages installed using

Re: Making sudo pip Safe

2016-12-12 Thread Tomas Orsava
On 12/12/2016 05:39 AM, Nick Coghlan wrote: On 11 December 2016 at 01:33, Donald Stufft wrote: On Dec 10, 2016, at 8:10 AM, Nick Coghlan wrote: P.S. For folks wondering what the problem with "--user" is on Debian/Ubuntu, as far as I know it's mainly the fact that "~/.local/bin" isn't on PATH

Re: Making sudo pip Safe

2016-12-12 Thread Piotr Ozarowski
> If setuptools setup.py had something along the lines of a > "--sys-install" switch that would force the installation to /usr > rather than /usr/local, I could see us easily adapting our macros to > just do that all the time. It might even be something that the Debian > guys would switch to, as th

Re: Making sudo pip Safe

2016-12-11 Thread Donald Stufft
If someone got this ready to merge I would be happy to merge it into pip upstream as well. Sent from my iPhone > On Dec 11, 2016, at 11:39 PM, Nick Coghlan wrote: > > Actually doing that would mean taking Donald's first pass at > implementing the `--global` switch, bringing it up to merge-rea

Re: Making sudo pip Safe

2016-12-11 Thread Nick Coghlan
On 11 December 2016 at 01:33, Donald Stufft wrote: > > On Dec 10, 2016, at 8:10 AM, Nick Coghlan wrote: > >> P.S. For folks wondering what the problem with "--user" is on >> Debian/Ubuntu, as far as I know it's mainly the fact that >> "~/.local/bin" isn't on PATH by default, so scripts installed

Re: Making sudo pip Safe

2016-12-10 Thread Donald Stufft
> On Dec 10, 2016, at 8:10 AM, Nick Coghlan wrote: > > P.S. For folks wondering what the problem with "--user" is on > Debian/Ubuntu, as far as I know it's mainly the fact that > "~/.local/bin" isn't on PATH by default, so scripts installed via > "--user" aren't automatically available. FWIW,

Re: Making sudo pip Safe

2016-12-10 Thread Neal Gompa
On Sat, Dec 10, 2016 at 8:10 AM, Nick Coghlan wrote: > On 10 December 2016 at 03:09, Orion Poplawski wrote: >> Debian deals with this by having dist-packages >> (https://wiki.debian.org/Python). Is this not worth adopting? > > This would be my main question as well, as tinkering with sys.prefix

Re: Making sudo pip Safe

2016-12-10 Thread Nick Coghlan
On 10 December 2016 at 03:09, Orion Poplawski wrote: > Debian deals with this by having dist-packages > (https://wiki.debian.org/Python). Is this not worth adopting? This would be my main question as well, as tinkering with sys.prefix can have a host of unintended side effects. As far as I can s

Re: Making sudo pip Safe

2016-12-09 Thread Orion Poplawski
On 12/07/2016 05:53 AM, Michal Cyprian wrote: > Hello, > > there is a long-standing problem that `sudo pip install` cannot be safely > used in Fedora. Many users don't know about this and break python packages on > theirs systems. Packages installed using this command can conflict and > overwri

Re: Making sudo pip Safe

2016-12-09 Thread Tomas Orsava
On 12/07/2016 06:21 PM, Stephen John Smoogen wrote: On 7 December 2016 at 10:27, Tomas Orsava wrote: On 12/07/2016 01:56 PM, Neal Gompa wrote: On Wed, Dec 7, 2016 at 7:53 AM, Michal Cyprian wrote: - system-python (i.e. what all programs installed via DNF will use) is limited to site-packages

Re: Making sudo pip Safe

2016-12-07 Thread Stephen John Smoogen
On 7 December 2016 at 10:27, Tomas Orsava wrote: > On 12/07/2016 01:56 PM, Neal Gompa wrote: >> >> On Wed, Dec 7, 2016 at 7:53 AM, Michal Cyprian >> wrote: >>> >>> - system-python (i.e. what all programs installed via DNF will use) is >>> limited to site-packages under /usr, so DNF-installed soft

Re: Making sudo pip Safe

2016-12-07 Thread Tomas Orsava
On 12/07/2016 02:47 PM, Konstantin Zemlyak wrote: Michal Cyprian wrote: there is a long-standing problem that `sudo pip install` cannot be safely used in Fedora. Many users don't know about this and break python packages on theirs systems. Packages installed using this command can conflict an

Re: Making sudo pip Safe

2016-12-07 Thread Tomas Orsava
On 12/07/2016 01:56 PM, Neal Gompa wrote: On Wed, Dec 7, 2016 at 7:53 AM, Michal Cyprian wrote: - system-python (i.e. what all programs installed via DNF will use) is limited to site-packages under /usr, so DNF-installed software is unaffected by anything installed with pip system-python is

Re: Making sudo pip Safe

2016-12-07 Thread Konstantin Zemlyak
Michal Cyprian wrote: there is a long-standing problem that `sudo pip install` cannot be safely used in Fedora. Many users don't know about this and break python packages on theirs systems. Packages installed using this command can conflict and overwrite Python rpm packages. This is a major p

Re: Making sudo pip Safe

2016-12-07 Thread Neal Gompa
On Wed, Dec 7, 2016 at 7:53 AM, Michal Cyprian wrote: > - system-python (i.e. what all programs installed via DNF will use) is > limited to site-packages under /usr, so DNF-installed software is unaffected > by anything installed with pip system-python is not intended for this use-case. It was

Making sudo pip Safe

2016-12-07 Thread Michal Cyprian
Hello, there is a long-standing problem that `sudo pip install` cannot be safely used in Fedora. Many users don't know about this and break python packages on theirs systems. Packages installed using this command can conflict and overwrite Python rpm packages. This is a major problem and we hav