[Pyrex] Newbie question

Matthias Baas baas at ira.uka.de
Thu Aug 5 14:45:37 CEST 2004


Phillip J. Eby wrote:
> At 11:37 AM 8/5/04 +0200, JC wrote:
>> How to write one single extension (let's say 'mycommoncasses.pyd) from 
>> several .pyx sources containing python classes ?
> 
> You can't; either use .pxi files and include them, or make two separate 
> modules.

Well, actually you can. Pyrex files can include other Pyrex files. So 
you just need one main module (the one that's specified in the setup 
script) and there you can include any number of other .pyx files (which 
must not appear in the setup script anymore).

- Matthias -




More information about the Pyrex mailing list