A simple demo python package that compiles a Fortran extension using meson, based on using f2py via meson including automatic wrapper generation.
This repository contains a template for a python package with a Fortran extension. You should put your fortran source code into the src subdirectory and list all files in the custom_target and extension_module sections.
You can then compile and install your code using
pip install .
meson.buildis partly based on aburrell/apexpy- using f2py via meson