From ab6d03c2f486b144fe7b791ab3006daed111e79c Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Thu, 9 May 2013 08:56:03 +0200 Subject: [PATCH] update setup.py script to use cythonize() --HG-- extra : rebase_source : 6494c60e7f79a9cc85fe72a7adf325557f6de2be --- Demos/callback/Setup.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Demos/callback/Setup.py b/Demos/callback/Setup.py index 3f4bf6fc82b..8690ac64cd6 100644 --- a/Demos/callback/Setup.py +++ b/Demos/callback/Setup.py @@ -1,11 +1,10 @@ from distutils.core import setup from distutils.extension import Extension -from Cython.Distutils import build_ext +from Cython.Build import cythonize setup( name = 'callback', - ext_modules=[ + ext_modules=cythonize([ Extension("cheese", ["cheese.pyx", "cheesefinder.c"]), - ], - cmdclass = {'build_ext': build_ext} + ]), )