Compiling .py files with Cython? #11578
-
Hi!
makes meson complain that it doesn't know what to do with .py files. How do I tell it to do the same thing as for .pyx files? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can do:
Because each compiled extension needs to be listed separately as a different "py.extension_module", and pure-python that has been cythonized is one extension module per .py file with no dependencies. Note that it is on my TODO list to add some method to handle automatically cythonizing .py files for you, as I'd like this to be more DRY. |
Beta Was this translation helpful? Give feedback.
You can do:
Because each compiled extension needs to be listed separately as a different "py.extension_module", and pure-python that has been cythonized is one extension module per .py file with no dependencies.
Note that it is on my TODO list to add some method to handle automatically cythonizing .py files for you, as I'd like this to be more DRY.