mpi4py compilation error with python 3.7.2
I try to compile VTK (inside a ParaView build) with mpi4py enabled and python 3.7.2. I have the following error:
/home/nicolas/ParaView/paraview2/VTK/ThirdParty/mpi4py/vtkmpi4py/src/mpi4py.MPI.c: In function ‘__Pyx_PyCFunction_FastCall’:
/home/nicolas/ParaView/paraview2/VTK/ThirdParty/mpi4py/vtkmpi4py/src/mpi4py.MPI.c:163017:13: error: too many arguments to function ‘(PyObject * (*)(PyObject *, PyObject * const*, Py_ssize_t))meth’
return (*((__Pyx_PyCFunctionFast)meth)) (self, args, nargs, NULL);
~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/nicolas/ParaView/paraview2/VTK/ThirdParty/mpi4py/vtkmpi4py/src/MPI.c:4:
/home/nicolas/ParaView/paraview2/VTK/ThirdParty/mpi4py/vtkmpi4py/src/mpi4py.MPI.c: In function ‘__Pyx__ExceptionSave’:
/home/nicolas/ParaView/paraview2/VTK/ThirdParty/mpi4py/vtkmpi4py/src/mpi4py.MPI.c:163228:21: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
*type = tstate->exc_type;
^~~~~~~~
curexc_type
(see full output: python3Failed.out)
Looking on the web, it seems to come from the Cython version used to generate some files in mpi4py: https://github.com/cython/cython/issues/1955
For info, my full config: CMakeCache.txt