boutproject / BOUT-dev

BOUT++: Plasma fluid finite-difference simulation code in curvilinear coordinate systems
http://boutproject.github.io/
GNU Lesser General Public License v3.0
182 stars 95 forks source link

Use `scikit-build-core` for Python API #2814

Open ZedThree opened 10 months ago

ZedThree commented 10 months ago

https://scikit-build-core.readthedocs.io

This runs CMake for us and integrates with pyproject.toml, so installing the Python API could just be pip install . which would run CMake for us.

dschwoerer commented 8 months ago

We do support pip install . already.

If you want to switch to scikit-build-core I would be supportive of dropping our custom build backend, but I do not see enough advantage for switching. Our backend does allow us to build source and binary wheels, including semi-automatic version detection, including local versions as well as pre-release version to upload to pypi ...

dschwoerer commented 8 months ago

Oh, I forgot, we also use that to create the release tar.gz including all the bundled libraries we ship. In case we switch to scikit-build-core, we still need to maintain that code or switch to a different solution ...