[petsc-users] python3 update

Gideon Simpson gideon.simpson at gmail.com
Fri Feb 24 12:50:14 CST 2017


yes, though I don’t know if this breaks backwards compatibility with python2.

-gideon

> On Feb 24, 2017, at 1:26 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> 
> 
>  Thanks, we'll get this into maint and master ASAP.
> 
> 
>> On Feb 24, 2017, at 11:46 AM, Gideon Simpson <gideon.simpson at gmail.com> wrote:
>> 
>> It appears the following modification to petsc_conf.py is sufficient to get PetscBinaryIO.py working:
>> 
>> change:
>> if os.environ.has_key('PETSC_DIR’):
>> to
>> if 'PETSC_DIR' in os.environ:
>> and
>> if os.environ.has_key('PETSC_ARCH’):
>> to
>> if 'PETSC_ARCH' in os.environ:
>> 
>> -gideon
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170224/47fecb33/attachment.html>


More information about the petsc-users mailing list