hatch icon indicating copy to clipboard operation
hatch copied to clipboard

Allowing C - Cython extension build

Open bastienqb opened this issue 3 years ago • 2 comments
trafficstars

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?

bastienqb avatar Jun 15 '22 10:06 bastienqb

Support is planned, a PEP is underway https://github.com/ofek/extensionlib

ofek avatar Jun 15 '22 12:06 ofek

in the meantime, you could perhaps look at how https://github.com/ofek/hatch-mypyc is handling this use case with the mypyc compiler

alextremblay avatar Jul 11 '22 18:07 alextremblay

Any update on this?

ThmX avatar Mar 27 '23 15:03 ThmX

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 avatar Aug 25 '23 01:08 joshua-auchincloss

@joshua-auchincloss looksl ovely, thanks

@ofek should a documentation reference be added to complete this?

RonnyPfannschmidt avatar Sep 05 '23 11:09 RonnyPfannschmidt