[Pyrex] Newbie question

Greg Ewing greg at cosc.canterbury.ac.nz
Fri Aug 6 02:22:05 CEST 2004


> How to write one single extension (let's say 'mycommoncasses.pyd) from
> several .pyx sources containing python classes ?

Pyrex doesn't currently have any support for separate
compilation of parts of a single extension module.
Essentially, one .pyx file corresponds to one extension
module.

However, you can use the 'include' statement to textually
include other files in your main .pyx file.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+




More information about the Pyrex mailing list