Skip to content

Instantly share code, notes, and snippets.

@marcelcaraciolo
Created September 17, 2011 04:03
Show Gist options
  • Select an option

  • Save marcelcaraciolo/1223614 to your computer and use it in GitHub Desktop.

Select an option

Save marcelcaraciolo/1223614 to your computer and use it in GitHub Desktop.
Pyx Cython Setup.py example
# setup.py
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
# for notes on compiler flags see:
# http://docs.python.org/install/index.html
setup(
cmdclass = {’build_ext’: build_ext},
ext_modules = [Extension("calculate_z", ["calculate_z.pyx"])]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment