[Pyrex] cimport: include path and standard headers

Robert Bradshaw robertwb at math.washington.edu
Wed Oct 10 02:54:12 CEST 2007


On Oct 1, 2007, at 9:47 AM, Alexander Belchenko wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> David McNab пишет:
>> Hi,
>>
>> I'm wondering if it might be a good idea to update the cimport  
>> mechanism
>> so that it searches an additional directory such
>> as /usr/share/pyrex/include (or on windows, something like c: 
>> \Python2.x
>> \pyrex\include).
>>
>> This would allow for Pyrex to be distributed with a set of handy
>> headers, such as 'Python.pxd', 'string.pxd', 'stdio.pxd' etc.
>>
>> As I hand-write a lot of 'cdef extern from...' blocks, I'm  
>> wondering if
>> we've got dozens of other folks doing the same. It makes about as  
>> much
>> sense as the world of C developers all writing their own version of
>> stdio.h, or Python developers all writing their own versions of  
>> 'sys',
>> 'os' etc.
>
> Nice idea. +1.

I like this idea too, but would like to make it explicit to import  
things. As a start, SAGE is distributed with .pxi files for (almost?)  
the entire Python C/API.

- Robert

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.copyleft.no/pipermail/pyrex/attachments/20071010/93002b25/attachment.bin 


More information about the Pyrex mailing list