The extension-helpers package includes convenience helpers to assist with building Python packages with compiled C/Cython extensions. It is developed by the Astropy project but is intended to be general and usable by any Python package.
For more information, see the documentation at http://extension-helpers.readthedocs.io