How should one go about handling building a Python...
# general
b
How should one go about handling building a Python C Extension Module? Is there a mechanism in-ecosystem to do this, or is it more of a "do-it-outside-of-pants" thing?
c
I’m no expert here, but I think if you provide your own setup.py, pants can use that, and in that way build native extensions.. It is mentioned here: https://www.pantsbuild.org/v2.8/docs/python-distributions#setuppy
b
worth a shot
h
Yep, Pants 2.8 will build your native extensions from a custom setup.py
That would be the standard way at present
In the future I could imagine supporting C/C++ and/or Rust as a first-class language in Pants and shimming a linked binary into a native extension, but usually native extensions are small and probably don't require that much overkill