Re: pip list --outdated gives all packages

2017-05-30 Thread Cem Karan

On May 29, 2017, at 1:51 AM, Cecil Westerhof  wrote:

> On Monday 29 May 2017 06:16 CEST, Cecil Westerhof wrote:
> 
>>> I'm completely flummoxed then; on my machines I get the 'old'
>>> behavior. Can you try a completely clean Debian install somewhere
>>> (maybe on a virtual box) and see what happens? I'm wondering if
>>> there is something going on with your migration.
>> 
>> I will do that. By the way, because of hardware I installed Stretch
>> which at the moment is still in testing.
> 
> I tried it. (Where some problems. Looks like you can not do certain
> things in VirtualBox. But that is for another time.)
> Get the same result. So maybe I should put it on the Debian list.

Yeah, I have no idea what to tell you.  Good luck!

Thanks,
Cem Karan
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pip list --outdated gives all packages

2017-05-29 Thread Cecil Westerhof
On Monday 29 May 2017 06:16 CEST, Cecil Westerhof wrote:

>> I'm completely flummoxed then; on my machines I get the 'old'
>> behavior. Can you try a completely clean Debian install somewhere
>> (maybe on a virtual box) and see what happens? I'm wondering if
>> there is something going on with your migration.
>
> I will do that. By the way, because of hardware I installed Stretch
> which at the moment is still in testing.

I tried it. (Where some problems. Looks like you can not do certain
things in VirtualBox. But that is for another time.)
Get the same result. So maybe I should put it on the Debian list.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pip list --outdated gives all packages

2017-05-28 Thread Cecil Westerhof
On Monday 29 May 2017 02:45 CEST, Cem Karan wrote:

>
> On May 27, 2017, at 11:10 AM, Cecil Westerhof  wrote:
>
>> On Saturday 27 May 2017 16:34 CEST, Cem Karan wrote:
>>
>>>
>>> On May 27, 2017, at 7:15 AM, Cecil Westerhof  wrote:
>>>
 On Saturday 27 May 2017 12:33 CEST, Cecil Westerhof wrote:

> I wrote a script to run as a cron job to check if I need to
> update my Python installations. I migrated from openSUSE to
> Debian and that does not work anymore (pip2 and pip3): it
> displays the same with and without --outdated. Anyone knows what
> the problem could be?

 It does not exactly displays the same, but it displays all
 packages, while in the old version it only displayed the outdated
 versions. I already made a change with awk, but I would prefer
 the old functionality.

 By the way, the patch is:
 pip2 list --outdated --format=legacy | awk '
 {
 if (substr($2, 2, length($2) - 2) != $5) {
 print $0
 }
 }'
>>>
>>> Could you check the output of 'pip3 --version'? When I tested pip3
>>> on my machine, 'pip3 list --outdated' only yielded the outdated
>>> packages, not a list of everything out there.
>>
>> Both as normal user and root I get:
>> pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)
>
> I'm completely flummoxed then; on my machines I get the 'old'
> behavior. Can you try a completely clean Debian install somewhere
> (maybe on a virtual box) and see what happens? I'm wondering if
> there is something going on with your migration.

I will do that. By the way, because of hardware I installed Stretch
which at the moment is still in testing.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pip list --outdated gives all packages

2017-05-28 Thread Cem Karan

On May 27, 2017, at 11:10 AM, Cecil Westerhof  wrote:

> On Saturday 27 May 2017 16:34 CEST, Cem Karan wrote:
> 
>> 
>> On May 27, 2017, at 7:15 AM, Cecil Westerhof  wrote:
>> 
>>> On Saturday 27 May 2017 12:33 CEST, Cecil Westerhof wrote:
>>> 
 I wrote a script to run as a cron job to check if I need to update
 my Python installations. I migrated from openSUSE to Debian and
 that does not work anymore (pip2 and pip3): it displays the same
 with and without --outdated. Anyone knows what the problem could
 be?
>>> 
>>> It does not exactly displays the same, but it displays all
>>> packages, while in the old version it only displayed the outdated
>>> versions. I already made a change with awk, but I would prefer the
>>> old functionality.
>>> 
>>> By the way, the patch is:
>>> pip2 list --outdated --format=legacy | awk '
>>> {
>>> if (substr($2, 2, length($2) - 2) != $5) {
>>> print $0
>>> }
>>> }'
>> 
>> Could you check the output of 'pip3 --version'? When I tested pip3
>> on my machine, 'pip3 list --outdated' only yielded the outdated
>> packages, not a list of everything out there.
> 
> Both as normal user and root I get:
>pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)

I'm completely flummoxed then; on my machines I get the 'old' behavior.  Can 
you try a completely clean Debian install somewhere (maybe on a virtual box) 
and see what happens?  I'm wondering if there is something going on with your 
migration.

Thanks,
Cem Karan
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pip list --outdated gives all packages

2017-05-27 Thread Cecil Westerhof
On Saturday 27 May 2017 16:34 CEST, Cem Karan wrote:

>
> On May 27, 2017, at 7:15 AM, Cecil Westerhof  wrote:
>
>> On Saturday 27 May 2017 12:33 CEST, Cecil Westerhof wrote:
>>
>>> I wrote a script to run as a cron job to check if I need to update
>>> my Python installations. I migrated from openSUSE to Debian and
>>> that does not work anymore (pip2 and pip3): it displays the same
>>> with and without --outdated. Anyone knows what the problem could
>>> be?
>>
>> It does not exactly displays the same, but it displays all
>> packages, while in the old version it only displayed the outdated
>> versions. I already made a change with awk, but I would prefer the
>> old functionality.
>>
>> By the way, the patch is:
>> pip2 list --outdated --format=legacy | awk '
>> {
>> if (substr($2, 2, length($2) - 2) != $5) {
>> print $0
>> }
>> }'
>
> Could you check the output of 'pip3 --version'? When I tested pip3
> on my machine, 'pip3 list --outdated' only yielded the outdated
> packages, not a list of everything out there.

Both as normal user and root I get:
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pip list --outdated gives all packages

2017-05-27 Thread Cem Karan

On May 27, 2017, at 7:15 AM, Cecil Westerhof  wrote:

> On Saturday 27 May 2017 12:33 CEST, Cecil Westerhof wrote:
> 
>> I wrote a script to run as a cron job to check if I need to update
>> my Python installations. I migrated from openSUSE to Debian and that
>> does not work anymore (pip2 and pip3): it displays the same with and
>> without --outdated. Anyone knows what the problem could be?
> 
> It does not exactly displays the same, but it displays all packages,
> while in the old version it only displayed the outdated versions. I
> already made a change with awk, but I would prefer the old
> functionality.
> 
> By the way, the patch is:
>pip2 list --outdated --format=legacy | awk '
>{
>if (substr($2, 2, length($2) - 2) != $5) {
>print $0
>}
>}'

Could you check the output of 'pip3 --version'?  When I tested pip3 on my 
machine, 'pip3 list --outdated' only yielded the outdated packages, not a list 
of everything out there.

I'm asking about 'pip3 --version' because I found that my PATH as an ordinary 
user and as root were different, so my scripts would work as an ordinary user 
and then fail as root.

Thanks,
Cem Karan
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pip list --outdated gives all packages

2017-05-27 Thread Cecil Westerhof
On Saturday 27 May 2017 12:33 CEST, Cecil Westerhof wrote:

> I wrote a script to run as a cron job to check if I need to update
> my Python installations. I migrated from openSUSE to Debian and that
> does not work anymore (pip2 and pip3): it displays the same with and
> without --outdated. Anyone knows what the problem could be?

It does not exactly displays the same, but it displays all packages,
while in the old version it only displayed the outdated versions. I
already made a change with awk, but I would prefer the old
functionality.

By the way, the patch is:
pip2 list --outdated --format=legacy | awk '
{
if (substr($2, 2, length($2) - 2) != $5) {
print $0
}
}'

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
-- 
https://mail.python.org/mailman/listinfo/python-list


pip list --outdated gives all packages

2017-05-27 Thread Cecil Westerhof
I wrote a script to run as a cron job to check if I need to update my
Python installations. I migrated from openSUSE to Debian and that does
not work anymore (pip2 and pip3): it displays the same with and
without --outdated. Anyone knows what the problem could be?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
-- 
https://mail.python.org/mailman/listinfo/python-list