hpyproject / hpy

HPy: a better API for Python
https://hpyproject.org
MIT License
1.02k stars 52 forks source link

ENH: upstream setuptools patches to upstream setuptools #340

Open mattip opened 2 years ago

mattip commented 2 years ago

This would simplify building projects that have migrated to HPy. This task would be something like

antocuni commented 2 years ago

This is a summary of what we do after merging #338 :

https://github.com/hpyproject/hpy/blob/2211087ff360ec5134baa8318300d64a18892901/hpy/devel/__init__.py#L128-L142

https://github.com/hpyproject/hpy/blob/2211087ff360ec5134baa8318300d64a18892901/hpy/devel/__init__.py#L95-L99

https://github.com/hpyproject/hpy/blob/2211087ff360ec5134baa8318300d64a18892901/hpy/devel/__init__.py#L261

https://github.com/hpyproject/hpy/blob/2211087ff360ec5134baa8318300d64a18892901/hpy/devel/__init__.py#L285-L301

On top of these, there are various hacks and bad monkey-patching to make things works. For example, we have to use this ugly hack to be able to distinguish hpy and normal extensions:

https://github.com/hpyproject/hpy/blob/2211087ff360ec5134baa8318300d64a18892901/hpy/devel/__init__.py#L176-L195

mattip commented 11 months ago

We could think about supporting pyproject.toml build systems as well or instead of setuptools. The scientific python projects have moved to meson/meson-python.

fangerer commented 11 months ago

Agreed. Btw. this relates to #435 .