openmc-dev / openmc

OpenMC Monte Carlo Code
https://docs.openmc.org
Other
750 stars 483 forks source link

Look into scikit-build #916

Open paulromano opened 6 years ago

paulromano commented 6 years ago

Just ran across scikit-build which provides "glue between the setuptools Python module and CMake". Seems like it might make it possible to have openmc pip-installable, which would be awesome.

shimwell commented 1 year ago

I had a tinker with making an openmc wheel using sckit build here is a branch which is WIP https://github.com/shimwell/openmc/tree/update_python_build

To build

python -m build

The files that have been changed are the setup.py and a new file (pyproject.toml) has been added.

I was able to successfully build a wheel with this and perform the c++ compile with the single command.

jon-proximafusion commented 2 months ago

Just to mention I took a look at the successor to scikit build which is called scikit build core

I put my work on this branch if anyone is interested https://github.com/shimwell/openmc/tree/trying-scikit-core