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.extension import Extension
from Cython.Distutils import build_ext
from Cython.Build import cythonize
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension("fib", ["fib.pyx"])]
ext_modules=cythonize("fib.pyx"),
)
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
from Cython.Build import cythonize
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [Extension("primes", ["primes.pyx"])]
ext_modules=cythonize("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