krober10nd / SeismicMesh

2D/3D serial and parallel triangular mesh generation tool for finite element methods.
https://seismicmesh.readthedocs.io/
GNU General Public License v3.0
127 stars 32 forks source link

new pybind11 #203

Closed nschloe closed 3 years ago

nschloe commented 3 years ago

pybind11 got a great little update a few months ago that helps reducing the boilerplate code. You just add an entry to pyproject.toml and then you can use Pybind11Extension in your setup.py. Check out pygalmesh.

krober10nd commented 3 years ago

Great, I'll deal with this after I resolve the issues with 3.9.

I have to say that was perhaps the trickiest part of setting up a mixed C++ Python package. Figuring out which boilerplate code you need.

nschloe commented 3 years ago

Tell me about it, I've gone through it too. Argh! The new helpers are nifty and I'm happy I don't have to deal with the compiler flags anymore.

krober10nd commented 3 years ago

This is on my to do list finally. By the way, I’ve had a bunch of people try to install SM on Linux based machines and they always go for the sudo apt get install cgal route which installs an ancient version of cgal being installed that prevents the installation of SM.