[petsc-dev] python2 vs python3 wrt configure

Matthew Knepley knepley at gmail.com
Thu Oct 24 11:09:23 CDT 2013


On Thu, Oct 24, 2013 at 10:24 AM, Satish Balay <balay at mcs.anl.gov> 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 some version of Python 3.x.
>
>     * for the time being, all distributions should ensure that python
>       refers to the same target as python2.
>
>     * however, end users should be aware that python refers to python3
>       on at least Arch Linux (that change is what prompted the
>       creation of this PEP), so python should be used in the shebang
>       line only for scripts that are source compatible with both
>       Python 2 and 3.
>
>     * in preparation for an eventual change in the default version of
>       Python, Python 2 only scripts should either be updated to be
>       source compatible with Python 3 or else to use python2 in the
>       shebang line.
>
> <<<<<<<<<<<
>
> 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?

  Matt


>
> Satish
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131024/696b31f9/attachment.html>


More information about the petsc-dev mailing list