[petsc-users] python3 update
Barry Smith
bsmith at mcs.anl.gov
Fri Feb 24 14:25:32 CST 2017
> On Feb 24, 2017, at 12:50 PM, Gideon Simpson <gideon.simpson at gmail.com> wrote:
>
> yes, though I don’t know if this breaks backwards compatibility with python2.
Nope. it worked for me 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
>>>
>>
>
More information about the petsc-users
mailing list