Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

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

Project Description

Because writing a each time is painful.



x64 2.7 3.4 3.5 3.6


x86 2.7 3.4 3.5 3.6
x64 2.7 3.4 3.5 3.6

Introduction 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

You can type:

$ easycython -h

to obtain the following CLI:

usage: [-h] [--annotation] [--no-annotation] [--numpy-includes]
                     [filenames [filenames ...]]

positional arguments:

optional arguments:
  -h, --help           show this help message and exit
  --no-annotation      (default: True)
  --no-numpy-includes  (default: True)
  • --annotation (default) will emit the HTML Cython annotation file.
  • --numpy-includes (default) will add the numpy headers to the build command.
  • 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.
Release History

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
easycython-1.0.7-py2.py3-none-any.whl (5.6 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Mar 26, 2017
easycython-1.0.7.tar.gz (5.6 kB) Copy SHA256 Checksum SHA256 Source Mar 26, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting