Docs on plugins for building extension modules? #3458
-
Hi, From the docs on building extension modules, I can see that Setuptools has in-built functionality for building C/C++ extension modules, and Cython extensions can be built with an extra build-time Is there any place where I can find documentation on this? P.S. I know that there are existing plugins for Rust and Go and possibly even CMake, and that I probably do not have write them myself. But I still want to understand how this really works, hence the question. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sorry for the delay in replying @codeandfire.
I am afraid that the official documentation still does not cover that. The following doc may be related https://setuptools--3485.org.readthedocs.build/en/3485/userguide/ext_modules.html In preparation for the upcoming PEP 660 implementation I would also advise about having a look on https://setuptools--3485.org.readthedocs.build/en/3485/userguide/extension.html#customizing-commands. In terms of implementation, I would take advantage of the |
Beta Was this translation helpful? Give feedback.
Sorry for the delay in replying @codeandfire.
I am afraid that the official documentation still does not cover that.
The following doc may be related https://setuptools--3485.org.readthedocs.build/en/3485/userguide/ext_modules.html
In preparation for the upcoming PEP 660 implementation I would also advise about having a look on https://setuptools--3485.org.readthedocs.build/en/3485/userguide/extension.html#customizing-commands.
In terms of implementation, I would take advantage of the
setuptools.finalize_distribution_options
entry-point to modify thecmdclass
attribute of the distribution object and, this way, inject a custombu…