[Cython] new "cythonize" script

2013-08-10 Thread Stefan Behnel
Hi,

I added a script as "bin/cythonize" that acts as a frontend for the
cythonize() compilation tool (and distutils' build_ext).

https://github.com/cython/cython/blob/master/bin/cythonize

One cool feature is that you can use it to recursively compile packages:

cythonize -i -k Cython

will translate, compile and link any .py files it finds in the Cython
package in-place (-i), ignoring anything that fails to compile (-k). If you
pass "--lenient", it ignores some compile time errors in favour of Python
compatibility. It also works on glob patterns etc.

I'm sure there's lots of features missing to make it nicely usable, so
please give it a try and speak up if you miss something. Improvements (in
the form of ideas and/or pull requests) are warmly appreciated.

Stefan
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel


Re: [Cython] [cython-users] new "cythonize" script

2013-08-10 Thread Robert Bradshaw
On Sat, Aug 10, 2013 at 11:39 AM, Stefan Behnel  wrote:

> Hi,
>
> I added a script as "bin/cythonize" that acts as a frontend for the
> cythonize() compilation tool (and distutils' build_ext).
>
> https://github.com/cython/cython/blob/master/bin/cythonize
>
> One cool feature is that you can use it to recursively compile packages:
>
> cythonize -i -k Cython
>
> will translate, compile and link any .py files it finds in the Cython
> package in-place (-i), ignoring anything that fails to compile (-k). If you
> pass "--lenient", it ignores some compile time errors in favour of Python
> compatibility. It also works on glob patterns etc.
>
> I'm sure there's lots of features missing to make it nicely usable, so
> please give it a try and speak up if you miss something. Improvements (in
> the form of ideas and/or pull requests) are warmly appreciated.
>

Cool. I was actually thinking something like this would be useful; no
complaints you beat me to it :).

- Robert
___
cython-devel mailing list
cython-devel@python.org
http://mail.python.org/mailman/listinfo/cython-devel