<div dir="ltr"><div dir="ltr">On Sun, Apr 16, 2023 at 12:34 AM Pierre Jolivet <<a href="mailto:pierre.jolivet@lip6.fr">pierre.jolivet@lip6.fr</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">petsc4py build is not broken, but maybe it is not future-proof and can’t handle Cython 3.0.0b2 (or there is a regression in Cython).<br>
Could you downgrade your Cython (to an actual release and not a beta) and see if the error persists?<br></blockquote><div><br></div><div>You are correct. However, I think this is a bug in the petsc4py install now. I had deleted my Cython, and it was fetched automatically.</div><div>I think we need to change</div><div><br></div><div> src/binding/petsc4py/conf/confpetsc.py:133</div><div><br></div><div>I just changed '>=' to '==', but maybe we just put a '< 3' since it is incompatible with the 3.0.0.b2 which setuptools</div><div>is automatically bringing down.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
Thanks,<br>
Pierre<br>
<br>
> On 16 Apr 2023, at 12:25 AM, Satish Balay via petsc-dev <<a href="mailto:petsc-dev@mcs.anl.gov" target="_blank">petsc-dev@mcs.anl.gov</a>> wrote:<br>
> <br>
> Works for me with latest main - so I'm not sure whats going on here..<br>
> <br>
> Is this reproducible in a clean clone? Also - are you using mpi4py in this build?<br>
> <a href="https://gitlab.com/petsc/petsc/-/issues/1359" rel="noreferrer" target="_blank">https://gitlab.com/petsc/petsc/-/issues/1359</a><br>
> [this issue looks different though..]<br>
> <br>
> Satish<br>
> <br>
> ------<br>
> <br>
> *** Building petsc4py ***<br>
> running build<br>
> running build_src<br>
> using Cython 0.29.33<br>
> cythonizing 'petsc4py/PETSc.pyx' -> 'petsc4py/PETSc.c'<br>
> running build_py<br>
> creating build<br>
> creating build/lib.linux-x86_64-cpython-311<br>
> creating build/lib.linux-x86_64-cpython-311/petsc4py<br>
> copying src/petsc4py/PETSc.py -> build/lib.linux-x86_64-cpython-311/petsc4py<br>
> copying src/petsc4py/__main__.py -> build/lib.linux-x86_64-cpython-311/petsc4py<br>
> copying src/petsc4py/__init__.py -> build/lib.linux-x86_64-cpython-311/petsc4py<br>
> creating build/lib.linux-x86_64-cpython-311/petsc4py/lib<br>
> ....<br>
> <br>
> <br>
> On Sat, 15 Apr 2023, Matthew Knepley wrote:<br>
> <br>
>> I get<br>
>> <br>
>> *** Building petsc4py ***<br>
>> running build<br>
>> running build_src<br>
>> removing Cython 0.29.30 from sys.modules<br>
>> fetching build requirement 'Cython >= 0.29.32'<br>
>> Searching for Cython>=0.29.32<br>
>> Best match: Cython 3.0.0b2<br>
>> Processing Cython-3.0.0b2-py3.8-macosx-10.9-x86_64.egg<br>
>> <br>
>> Using<br>
>> /PETSc3/petsc/petsc-dev/src/binding/petsc4py/.eggs/Cython-3.0.0b2-py3.8-macosx-10.9-x86_64.egg<br>
>> <br>
>> using Cython 3.0.0b2<br>
>> cythonizing 'petsc4py/PETSc.pyx' -> 'petsc4py/PETSc.c'<br>
>> /PETSc3/petsc/petsc-dev/src/binding/petsc4py/conf/cythonize.py: No such<br>
>> file or directory: 'petsc4py/PETSc.pyx'<br>
>> error: Cython failure: 'petsc4py/PETSc.pyx' -> 'petsc4py/PETSc.c'<br>
>> **************************ERROR*************************************<br>
>> Error building petsc4py.<br>
>> <br>
>> Thanks,<br>
>> <br>
>> Matt<br>
>> <br>
>> <br>
> <br>
<br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>