openmc-dev / openmc

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

Look into scikit-build #916

Open paulromano opened 7 years ago

paulromano commented 7 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 2 years 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 4 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