Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Matthew Knepley
On Thu, Oct 24, 2013 at 7:19 PM, Todd Munson wrote: > > I vote for logo or delphi. The turtle graphics do rock, but what about love for Turbo Pascal? Matt > > Todd. > > On Oct 24, 2013, at 6:45 PM, Jed Brown wrote: > > > Satish Balay writes: > >> From what I remember - python build migh

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Todd Munson
I vote for logo or delphi. Todd. On Oct 24, 2013, at 6:45 PM, Jed Brown wrote: > Satish Balay writes: >> From what I remember - python build might succeed if libssl is missing >> [python configure will work arround it ] - but then --download-package >> from petsc configure would fail. > > Sc

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Jed Brown
Satish Balay writes: > From what I remember - python build might succeed if libssl is missing > [python configure will work arround it ] - but then --download-package > from petsc configure would fail. Screw it, we're changing languages. Scala, Haskell, or APL? Actually, INTERCAL might be more

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
On Thu, 24 Oct 2013, Satish Balay wrote: > On Thu, 24 Oct 2013, Jed Brown wrote: > > > Satish Balay writes: > > > > > yeah its a 'apt-get install python2'. Similar thing with future fedora > > > releases. > > > > So long as you are root and don't mind enabling the repository. > > > > http:/

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
On Thu, 24 Oct 2013, Jed Brown wrote: > Satish Balay writes: > > > yeah its a 'apt-get install python2'. Similar thing with future fedora > > releases. > > So long as you are root and don't mind enabling the repository. > > http://askubuntu.com/questions/148638/how-do-i-enable-the-universe-r

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Jed Brown
Satish Balay writes: > yeah its a 'apt-get install python2'. Similar thing with future fedora > releases. So long as you are root and don't mind enabling the repository. http://askubuntu.com/questions/148638/how-do-i-enable-the-universe-repository > with such isses python creates - no wonder

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Barry Smith
On Oct 24, 2013, at 3:23 PM, Jed Brown wrote: > Satish Balay writes: > > > With respect to the old versions of Python in the logs, a better > question is which of those machines do not have a more recent version of > Python, perhaps one that you have to invoke using "python2.6" instead of > "

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
On Thu, 24 Oct 2013, Jed Brown wrote: > Satish Balay writes: > > > On Thu, 24 Oct 2013, Jed Brown wrote: > > > >> Satish Balay writes: > >> > But then - as you said - python 2.4 doesn't provide python2 > >> > >> Python 2.6.8 (April 2012) does not provide python2! > > > > so changing 'python' t

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Jed Brown
Satish Balay writes: > On Thu, 24 Oct 2013, Jed Brown wrote: > >> Satish Balay writes: >> > But then - as you said - python 2.4 doesn't provide python2 >> >> Python 2.6.8 (April 2012) does not provide python2! > > so changing 'python' to 'python2' in configure won't help The front-end "configu

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
On Thu, 24 Oct 2013, Jed Brown wrote: > Satish Balay writes: > > But then - as you said - python 2.4 doesn't provide python2 > > Python 2.6.8 (April 2012) does not provide python2! so changing 'python' to 'python2' in configure won't help 'python' is likely to be python2 on all OSes except arc

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Jed Brown
Åsmund Ervik writes: > I sincerely doubt that archlinux will switch back, they've made python > == python3 in all python scripts in the entire distro, which tooks > quite some effort. There were some initial negative reactions, but > that's three years ago now. Yeah, it was done 3 years ago and w

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Jed Brown
Satish Balay writes: > But then - as you said - python 2.4 doesn't provide python2 Python 2.6.8 (April 2012) does not provide python2! pgpGR0NSn0OQn.pgp Description: PGP signature

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
On Thu, 24 Oct 2013, Barry Smith wrote: > > On Oct 24, 2013, at 2:15 PM, Satish Balay wrote: > > > An emphirical count on my recent mail archives.. I'm not sure if grep > > is able to access all configure.log files in these mailboxes - but the > > ratio could be representative.. > > > > so 10%

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Barry Smith
On Oct 24, 2013, at 2:15 PM, Satish Balay wrote: > An emphirical count on my recent mail archives.. I'm not sure if grep > is able to access all configure.log files in these mailboxes - but the > ratio could be representative.. > > so 10% of logs found are using python 2.4/2.5 What about in

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
A larger sample [starting Apr 2011] balay@mockingbird /home/balay/mail $ grep --no-group-separator -A 1 'Python version' inbox.old.3? inbox.old.4? |grep -v 'Python' | wc -l 503 balay@mockingbird /home/balay/mail $ grep --no-group-separator -A 1 'Python version' inbox.old.3? inbox.old.4? |grep -

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Åsmund Ervik
On Thu, 24 Oct 2013, Satish Balay wrote: > >On Thu, 24 Oct 2013, Jed Brown wrote: >> >> Default installations of Python through python-2.6 do not contain >> "python2", so those users will have to type: >> >> $ python configure --args >> >> On Arch Linux, I always end up needing: >> >> $ python2

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
An emphirical count on my recent mail archives.. I'm not sure if grep is able to access all configure.log files in these mailboxes - but the ratio could be representative.. so 10% of logs found are using python 2.4/2.5 Satish --- balay@mockingbird /home/balay/mail $ grep --no-group-sepa

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Barry Smith
configure.log contains the python version used. Can we scarf up the version for say the last three years of all configure.log we have received and view the trend of pre 2.6 ones still being used? Won’t be a perfect measure, but at least it is a measure. Barry On Oct 24, 2013, at 1:52 PM,

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
On Thu, 24 Oct 2013, Jed Brown wrote: > Satish Balay writes: > > > Do you know if archlinux will switch over to using the guideline from > > python.org? > > The guideline does not prohibit Arch from doing what they did (3 years > ago). Yeah - it appears guideline came up in response to what a

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Jed Brown
Satish Balay writes: > Do you know if archlinux will switch over to using the guideline from > python.org? The guideline does not prohibit Arch from doing what they did (3 years ago). It says that scripts should use "python2" if they will only work for python-2.x and use "python" if they work

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
On Thu, 24 Oct 2013, Jed Brown wrote: > Matthew Knepley writes: > >> So configure using '#!/usr/bin/env python' should be fine for a while > >> - and at some point it can be switched to '#!/usr/bin/env python2' if > >> needed. > > > > > > Will anything break if we change it now? > > Default inst

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Jed Brown
Matthew Knepley writes: >> So configure using '#!/usr/bin/env python' should be fine for a while >> - and at some point it can be switched to '#!/usr/bin/env python2' if >> needed. > > > Will anything break if we change it now? Default installations of Python through python-2.6 do not contain "py

Re: [petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Matthew Knepley
On Thu, Oct 24, 2013 at 10:24 AM, Satish Balay wrote: > http://lwn.net/Articles/571528/ > https://fedoraproject.org/wiki/Changes/Python_3_as_Default > http://www.python.org/dev/peps/pep-0394/ > > >> > > * python2 will refer to some version of Python 2.x. > > * python3 will refer to so

[petsc-dev] python2 vs python3 wrt configure

2013-10-24 Thread Satish Balay
http://lwn.net/Articles/571528/ https://fedoraproject.org/wiki/Changes/Python_3_as_Default http://www.python.org/dev/peps/pep-0394/ >> * python2 will refer to some version of Python 2.x. * python3 will refer to some version of Python 3.x. * for the time being, all distributions