python - Cython setup.py for several .pyx -


I would like to do a fast cyanonic code for .pyx

  Cython.Build  
  • If I want to create a silent

    • Many files with XP, which I will call by their name

    • .pyx files in all folders

      In both cases what would be the Python code for setup.py?

      That I will call distutils.core from their distutils by import setup from their name. Extension import extension from Cython.Distutils import_extext_modules = [Extensions ("prime number", ["primes.pyx"]), extension ("spam", ["spam.pyx"]), ...] Setup (name = 'MyProject', cmdclass = {'build_ext': build_ext}, ext_modules = ext_modules,)


        #in all .pyx one Files Distthils.core Import Setup Folder from Cython. Import cythonize setup (name = 'MyProject', ext_mod Ules = cythonize (["*. Pyx"]),)    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -