I made a branch here where you can try it
https://gitorious.org/~stuaxo/shoebot/shoebot-cython-extensions

It's just supershape thats built like that (look at the top of __init__.py to 
see the change).

It's quite nice using pyximport - setup.py is not needed, it just compiles it 
on 
the first go.

What I haven't done is any benchmarking, I'm v.new to cython and probably not 
using
it correctly (the generated code seems to have a lot of checks in it (using 
cython -a))

Still, if it's faster and more convenient, it might be a nice compromise.

> From: ricardo lafuente <[email protected]>

> To: [email protected]
> Sent: Sun, April 17, 2011 11:11:28 AM
> Subject: Re: [shoebot-devel] C Modules, Cython and debian packaging?
> 
> Oh yes, definitely -- i'm still in the dark as to how to package C 
> extensions directly.
> 
> On 04/16/2011 07:21 PM, Stuart Axon  wrote:
> > I experimented converting the supershape C module to Cython and  it seems to
> > work, would this be any easier to package for debian than  using the 
> > compiled 
>C
> > modules?
> >
> > (It builds from setup.py in supershapes  folder)
> >
> >   S++
> >
> >  _______________________________________________
> > Shoebot-devel mailing  list
> > [email protected]
> > http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
> >
> 
> _______________________________________________
> Shoebot-devel l mailing list
> [email protected]
> http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
> 
_______________________________________________
Shoebot-devel mailing list
[email protected]
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net

Reply via email to