[petsc-users] Python version needed for internal scripts

Matthew Knepley knepley at gmail.com
Wed Oct 14 05:20:13 CDT 2020


On Wed, Oct 14, 2020 at 6:01 AM Nicolas Barral <
nicolas.barral at math.u-bordeaux.fr> wrote:

> Hi all,
>
> Apologies if the question has already been asked, but the ML archive
> search seems to be broken (or has it never worked ?).
>
> Many petsc scripts require a 'python' executable, which python should
> that be ? For now, python3 seems to have worked with the configure
> scripts and petsc_gen_xdmf scripts, but can I safely assume it will
> always be the case ?
>
> 'python' is usually an alias for python2, so making it point at python3
> seems a bit dangerous. Yet, python2 was removed from recent Ubuntus and
> maybe others, and if I have no python2 installed, and no 'python' alias,
> I have to manually edit all the scripts.
>

Right now, PETSc works with both Python2 and Python3. I am not sure how
long we can support Python2,
but the aim is to support it until End of Life, probably on Red Hat since
they change the slowest I think.

  Thanks,

    Matt


> Thanks
>
> --
> Nicolas
>


-- 
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

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20201014/c1cd709e/attachment.html>


More information about the petsc-users mailing list