Magnus Lie Hetland wrote:
> Hmm. OK. I still don't understand why the missing __init__.py file  
> means that the .pxd file is ignored...

Because you instruct Cython to compile a file package/module.pyx and it
looks for a corresponding package/module.pxd. Since it cannot find the
package, it can't find the .pxd file.


> At the moment, I'm trying to split my code into two separate dirs --  
> src/ and lib/ -- with src containing the Cython source (in pure Python  
> mode .py files, along with .pxd files, as needed) and lib containing  
> the Python code that is to be installed.

Why do you do that? Just keep your source files in a correct package tree,
regardless if you compile them or not. You can make that a deployment detail.

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to