[petsc-dev] #!/usr/bin/env python2?

Toby D. Young tyoung at ippt.gov.pl
Tue Oct 19 10:15:18 CDT 2010

> 4. The reason to automatically locate python2 instead of possibly python3 is
> so that the python scripts that can be run stand-alone will automatically
> behave correctly.

You can't automatically locate python2 on a system that does not have
python2 but only has python3! The correct behaviour is therefore to check
for his own version numbers in the configure script (which petsc already
does to some extent) and put the check right there where users can see it
and read the error message and do something about it if things go wrong
(ie, for now, go install python2 and call that version directly).



Toby D. Young
Assistant Professor

Institute of Fundamental Technological Problems
Polish Academy of Sciences
ul Adolfa Pawinskiego 5b
02-106 Warsaw

www:   http://www.ippt.gov.pl/~tyoung
skype: stenografia

More information about the petsc-dev mailing list