hatch
hatch copied to clipboard
Allowing C - Cython extension build
We are currently using setuptools as our build backend and would like to move to hatch. However, the blocking point for us is that we need to be able to build some extension in Cython, and I don't see anything related to this point in Hatch right now. Is it something that should be developed as a plugin? Or do you plan to integrate it soon?
Support is planned, a PEP is underway https://github.com/ofek/extensionlib
in the meantime, you could perhaps look at how https://github.com/ofek/hatch-mypyc is handling this use case with the mypyc compiler
Any update on this?
Adding to this as I had the same drawback, I tossed what I was bootstrapping in a lib for reuse so hope it helps others
In hatch.toml
[build.targets.wheel.hooks.cython]
dependencies = ["hatch-cython"]
source: hatch-cython
@joshua-auchincloss looksl ovely, thanks
@ofek should a documentation reference be added to complete this?