skip to navigation
skip to content

easycython 1.0.3

Convert .pyx to (.pyd|.so) very easily.

Latest Version: 1.0.4

Because writing a each time is painful. is a script that will attempt to automatically convert one or more .pyx files into the corresponding compiled .pyd|.so binary modules files. Example:

$ python myext.pyx

pip install easycython will automatically create an executable script in your Scripts/ folder, so you should be able to simply:

$ easycython myext.pyx

or even:

$ easycython *.pyx

Note that:

  • Cython annotation (-a) is always-on. I find it easier to just always have the annotation available, and clean up unwanted files by other means.
  • numpy is required, because all the work I do requires numpy support inside my cython extensions.
  • Compiler flags -O2 -march=native are automatically passed to the compiler. I have not yet had to step through the generated C code with a debugger.

These things above could all be made optional. I’m considering using the click library for the CLI interface (hint: pull requests welcome).

File Type Py Version Uploaded on Size
easycython-1.0.3-py2-none-any.whl (md5) Python Wheel 2.7 2014-07-28 4KB (md5) Source 2014-07-28 8KB
  • Downloads (All Versions):
  • 23 downloads in the last day
  • 169 downloads in the last week
  • 898 downloads in the last month