Simon King wrote: > Hi Leif, > > Am Montag, 1. August 2016 00:31:58 UTC+2 schrieb leif: > > sage: from Cython.Build import cythonize > sage: cythonize? > > > Thanks! Unfortunately it doesn't tell how to actually use cythonise in > setup.py. I tried to replace the line > cmdclass = {'build_ext': build_ext} > by > cmdclass = {'cythonize': cythonize} > but to no avail..
? As in the description / docstring; cythonize() *takes* a module_list and also *returns* a (modified) module_list. Instead of importing build_ext from Cython, do ("as usual"): from distutils.command.build_ext import build_ext Then just change your setup(): setup( ... ext_modules = cythonize( ... # the module list you already have ), ... keeping cmd_class as is (it's now just plain disutils' build_ext, no longer Cython's). -leif -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.