Add Option to mypyc
to only Generate and Output C Code
#1047
Labels
feature
Supporting previously unsupported Python, new native types, new features, etc.
I'm using scikit-build-core to build a fairly large Python project with multiple C++ files. There are some Python files that I want to optimize, so I'm using Cython.
scikit-build-core
doesn't have a special plugin for Cython likesetuptools
, so I'm just using the CLI. Something like:This generates a .c & .h file that CMake can keep track of. I wanted to migrate some of these modules to MyPyC since I'm seeing better performance, but there isn't a CLI option to do something similar. I was able to hack something together like:
But it would be helpful if I could do the same from the
mypyc
command. Maybe adding a subcommand or different option to specify that we only need the C file, and where to put it? What do y'all think?The text was updated successfully, but these errors were encountered: