f2py
in compile mode (i.e. f2py -c
) now accepts the --backend meson
option. This is the default option for Python 3.12
on-wards. Older versions will still default to --backend distutils
.
To support this in realistic use-cases, in compile mode f2py
takes a --dep
flag one or many times which maps to dependency()
calls in the meson
backend, and does nothing in the distutils
backend.
There are no changes for users of f2py
only as a code generator, i.e. without -c
.