agriyakhetarpal / hugo-python-distributions

pip-installable binaries (wheels) for the extended version of the Hugo static site generator (note: unofficial, community-maintained)
https://pypi.org/project/hugo/
Apache License 2.0
12 stars 1 forks source link

Use `scikit-build-core` #62

Open agriyakhetarpal opened 5 months ago

agriyakhetarpal commented 5 months ago

Can specify everything from what to include in the sdist and wheel and things like ABI tags through declarative metadata – will be pretty cool

It will also help removing eggs from the sdist, which I'm not sure why they're there – note to self: return to https://github.com/agriyakhetarpal/hugo-python-distributions/tree/create-cleaner-sdist sometime soon

agriyakhetarpal commented 5 months ago

scikit-build-core does not offer overriding invoking CMake behaviour. There are workarounds though: https://github.com/FMalerba/skbuild_test/tree/solution

Closing because it does not make sense to make things overly difficult to contribute further to and this project does not need CMake hacks. Perhaps hatch would fix all its issues if it can provide build_ext and bdist_wheel behaviours.

agriyakhetarpal commented 1 month ago

Still in scope via overrides

agriyakhetarpal commented 1 month ago

https://scikit-build-core.readthedocs.io/en/latest/plugins/hatchling.html https://scikit-build-core.readthedocs.io/en/latest/plugins/setuptools.html

Need to configure a pre-installation step that builds the binary and places it in the installation directory and then the other build backend can take care of the rest