Make the cythonize command line more useful #1711

Open
netheril96 opened this Issue May 21, 2017 · 1 comment

Comments

Projects
None yet
1 participant

netheril96 commented May 21, 2017 edited

A couple of more common build options, such as --numpy, --include_path, --libraries, --cflags, --ldflags should be added to cythonize command line so that it can be used easily for the majority of building tasks.

Setting up a setup.py script for every pyx file I need to write is really, really tedious, which put me off from cython for years before I finally tried it for the first time (and that was in IPython notebook with cython magic, so I still don't know how to write setup.py). I am sure that many beginners to cython are just scared of the complicated build process like me, and never have the chance to actually try it. Please make it more accessible.

The %%cython magic in IPython has much better sane defaults and useful command line options than the cythonize script.

netheril96 commented May 22, 2017 edited

I extracted the cython magic into a separate script at https://github.com/netheril96/utilities/blob/master/mycython.py.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment