pyfort

November 21, 2025 ยท View on GitHub

github CI

A simple demo python package that compiles a Fortran extension using meson, based on using f2py via meson including automatic wrapper generation.

How to use

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 .

References