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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -