Commit fb863d29 authored by Stefan Behnel's avatar Stefan Behnel

use cythonize() instead of build_ext override in tutorial examples

parent 4f140dde
from distutils.core import setup from distutils.core import setup
from distutils.extension import Extension from Cython.Build import cythonize
from Cython.Distutils import build_ext
setup( setup(
cmdclass = {'build_ext': build_ext}, ext_modules=cythonize("fib.pyx"),
ext_modules = [Extension("fib", ["fib.pyx"])]
) )
from distutils.core import setup from distutils.core import setup
from distutils.extension import Extension from Cython.Build import cythonize
from Cython.Distutils import build_ext
setup( setup(
cmdclass = {'build_ext': build_ext}, ext_modules=cythonize("primes.pyx"),
ext_modules = [Extension("primes", ["primes.pyx"])]
) )
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment