On Thu, Aug 28, 2008 at 7:05 PM, Jay Parlar <[EMAIL PROTECTED]> wrote:
> This seems to have worked. Is there a difference between having a
> __init__.pyx and just a regular __init__.py? I've got .py now, and it
> seems to be working.

AFAIK, there is no difference. However, if you 'install' your pxd's as
package data, perhaps you will need to also install a __init__.pyx
alongside the pxd's. For example, from one of my projects, pxd and C
API (plus SWIG typemaps for my objects) are installed inside a
'include' dir (more or less as numpy does):



$ tree ~/lib/python/mpi4py
/u/dalcinl/lib/python/mpi4py
|-- MPI.so
|-- __init__.py
|-- __init__.pyc
|-- __init__.pyo
|-- include
|   `-- mpi4py
|       |-- MPI.pxd
|       |-- __init__.pyx
|       |-- mpi.pxi
|       |-- mpi4py.h
|       |-- mpi4py.i
|       |-- mpi4py_MPI.h
|       |-- mpi4py_MPI_api.h
|       |-- mpi4py_MPI_api_fix.h
|       `-- mpi_c.pxd
|-- rc.py
|-- rc.pyc
`-- rc.pyo


-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to