sabago / pysph

Automatically exported from code.google.com/p/pysph
0 stars 0 forks source link

cython compiler fails to find the mpi.pxd file #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
While compiling a cython file containing "cimports" to the mpi4py module, 
the cython compiler fails to find the pxd files for the package. This is 
because the pxd files are not in the Include directory of the Cython module. 

One solution to this is to add a symlink to the mpi4py folder in the include 
directory of the mpi4py package in the Include directory of Cython.

Original issue reported on code.google.com by shekhar....@gmail.com on 5 Mar 2010 at 6:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
We can use the same function to get the includes for mpi4py as is done for 
numpy,
that is adding mpi4py.get_include() to the include_dirs in setup.py. It works 
for me
this way.

Original comment by pankaj86 on 6 Mar 2010 at 4:55

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks Pankaj, I've tested this and checked the patch in (a little modified 
though).

Original comment by prabhu.r...@gmail.com on 13 Mar 2010 at 5:37