Instantly share code, notes, and snippets.

@jskDr jskDr/setup.py Secret
Created May 4, 2014

Embed
What would you like to do?
A python code to compilie cython codes, which can enhance speed performance by transforming to C codes
# Compile a cython file (.pyx) in the directory.
from distutils.core import setup
from Cython.Build import cythonize
setup(name = 'Math library',
ext_modules = cythonize("*.pyx"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment