|
Re: cimport across directories: msg#00024python.pyrex
On Friday 16 June 2006 06:35, you wrote: > This isn't a bug. You need to name the .pyx and .pxd files > using the full dotted name that the module will eventually > have in the package hierarchy. For example, a module called > spam that will reside in a package called foo should have > source files named "foo.spam.pyx" and "foo.spam.pxd". > > This is not officially documented yet, because I haven't > decided on the best way of dealing with the issue. But that's > how it currently works. I tried to apply your suggestion to William's old toy example at http://modular.fas.harvard.edu/talks/pyrex/cimport.tgz but had no success. I have a subdirectory 'ring' which contains ring.integer. [pxd|pyx] and ring.rational.[pxd|pyx] (I renamed them). I also have a file called ex.pyx which does cimport ring.integer cimport ring.rational etc. Pyrexc complaints when called like this: pyrexc -I`pwd`/ring ex.pyx 'ring' redeclared What am I missing? Cheers, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _icq: 177334829 _jab: martinralbrecht@xxxxxxxxxxxxx |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: cimport across directories: 00024, Greg Ewing |
|---|---|
| Next by Date: | Pyrex v Psyco: 00024, Philip Smith |
| Previous by Thread: | Re: cimport across directoriesi: 00024, Greg Ewing |
| Next by Thread: | Pyrex v Psyco: 00024, Philip Smith |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |