Re: Help for public Python extension types.
Greg Ewing <[email protected]> Sun, 29 Jun 2008 12:21:43 +1200
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
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