Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Meson to build all babelized projects #87

Closed
mdpiper opened this issue Nov 3, 2023 · 5 comments · Fixed by #90
Closed

Use Meson to build all babelized projects #87

mdpiper opened this issue Nov 3, 2023 · 5 comments · Fixed by #90

Comments

@mdpiper
Copy link
Member

mdpiper commented Nov 3, 2023

Currently, we use setuptools (C, C++, Python) and numpy.distutils (Fortran) to build babelized projects. With numpy.distutils being removed in Python 3.12, we need a different build system for Fortran projects (see #77). Meson, along with meson-python, was suggested as an alternative.

To keep things as simple as possible in the babelizer, it would be ideal to use the same build system for all babelized projects. Meson (and meson-python) can build C, C++, Fortran, Python, and Java projects, using a configuration file that can be templated.

@mdpiper
Copy link
Member Author

mdpiper commented Nov 3, 2023

I've successfully built a Fortran project, the babelized version of the heat model from bmi-example-fortran, using meson-python. I've also built the analogous C project. The results are here:

Meson (and meson-python) worked great!

@aufdenkampe
Copy link

@mdpiper, this is exciting to see. When might you move forward with this for a future release?

@Volk3rJ, @ptomasula, and I are exploring how we might move forward with using Babelizer for our new BMI wrapping & coupling work that I mentioned in csdms/pymt#166

@mdpiper
Copy link
Member Author

mdpiper commented Feb 21, 2024

Hi @aufdenkampe -- I'd love to get this done soon, but scheduling is a problem. I talked with @mcflugen last week and this fits with his push to get our Workbench tools up to date. Maybe the first half of March?

@aufdenkampe
Copy link

@mdpiper, that's great to hear that you might be able to get this done in the next few weeks! Thanks for the update!

@mdpiper
Copy link
Member Author

mdpiper commented Feb 22, 2024

@aufdenkampe If it would help, if you watch this repository (clicking the Watch button on https://github.com/csdms/babelizer) you'll get email updates whenever a new issue or PR is made so you can track our progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants