[Pyrex] C-API implementation in Pyrex 0.9.6

Stefan Behnel stefan_ml at behnel.de
Mon Oct 15 13:39:04 CEST 2007


Greg Ewing wrote:
> Stefan Behnel wrote:
>> but that fails as Pyrex is then looking for "lxml.etree.pxd".
> 
> Yes. That's still the way Pyrex deals with modules inside
> packages. See "Source Files and Compilation" in the Language
> Overview.
> 
> I'm thinking about ways to do it better, but that's how
> it works for the moment.
> 
>> BTW, Cython sets the correct module name based on what you tell distutils
> 
> Which isn't any help if you're not using distutils.

I don't think there are many (publicly available) extension modules that are
not built with distutils, but even if you didn't want to use them, you could
pass the FQMN at the command line to achieve the same result. I think that's
better than enforcing a redundant naming scheme on the file names.

Stefan




More information about the Pyrex mailing list