Discussion:
C Modules, Cython and debian packaging?
Stuart Axon
2011-04-16 18:21:11 UTC
Permalink
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++
ricardo lafuente
2011-04-17 10:11:28 UTC
Permalink
Oh yes, definitely -- i'm still in the dark as to how to package C
extensions directly.
Post by Stuart Axon
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
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Stuart Axon
2011-04-18 11:21:50 UTC
Permalink
Cool, I'll try and put this up somewhere when I get time (I guess I'll need to
setup a new git branch or something.

I really think when it comes to libraries, we should maybe seperate them out and
have a setup.py for each,
so they can all be separately packaged in pypi (we'd want upstream agreement so
this was maintained properly).

Also: I had a quick look, and it seems pyximport might even do the compilation
on demand.

S++



----- Original Message ----
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.
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
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
_______________________________________________
Shoebot-devel l mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Stuart Axon
2011-04-18 21:35:22 UTC
Permalink
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.
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.
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
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
_______________________________________________
Shoebot-devel l mailing list
http://lists.tinkerhouse.net/listinfo.cgi/shoebot-devel-tinkerhouse.net
Loading...