csdms / babelizer

Transform BMI-wrapped models into Python packages
https://babelizer.readthedocs.io
MIT License
4 stars 3 forks source link

Test babelizer with a Fortran library #25

Closed mdpiper closed 3 years ago

mdpiper commented 3 years ago

This PR adds the bmi-example-fortran repository as a submodule and uses it to test that the babelizer can wrap a Fortran library.

mdpiper commented 3 years ago

@mcflugen This uses my kludgy workaround of installing gfortran through mamba on macOS and through apt-get on Linux.

mcflugen commented 3 years ago

@mdpiper I think this is working again. The issue was that the environment was not being set up correctly after the compilers were installed. One way to fix it was to re-source .bashrc after they were installed, another was to install them into a separate environment and then activate that environment. The second method seemed a little cleaner, so that's what I did.

mdpiper commented 3 years ago

@mcflugen That makes sense. Almost every other project we build in an environment (and the conda docs recommend it). I wish I'd thought of this! Thank you for fixing it.