[Pyrex] Help for public Python extension types.
Greg Ewing
greg.ewing at canterbury.ac.nz
Sun Jun 29 02:21:43 CEST 2008
Daehyok Shin wrote:
> Thanks for your reply, Greg.
> To resolve the problem, do you mean I have to change the file names
> from test.pyx to xxx.yyy.zzz.test.pyx and from test.pxd to
> xxx.yyy.zzz.test.pxd?
That's one way to do it.
Pyrex now supports an alternative way, which is to put
a file called __init__.py or __init__.pyx into each
directory which is to be treated as a package directory,
e.g.
xxx/
__init__.py
yyy/
__init__.py
zzz/
__init__.py
test.pxd
test.pyx
This is described in the new section on Source Files and
Compilation in the Language Overview.
--
Greg
More information about the Pyrex
mailing list