F2py target file not generated

I am attempting to wrap Fortran code in Python, but when attempting to run the f2py command

python -m numpy.f2py -c fortranfile.for -m fortranfile

I receive this:

running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler options
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
running build_src
build_src
building extension "fortranfile" sources
f2py options: []
f2py:> C:\Users\user\AppData\Local\Temp\tmpzwukm71f\src.win-amd64-3.9\fortranfilemodule.c
creating C:\Users\user\AppData\Local\Temp\tmpzwukm71f\src.win-amd64-3.9
Reading fortran codes...
        Reading file 'fortranfile.for' (format:fix,strict)
Post-processing...
Post-processing (stage 2)...
Building modules...
error: f2py target file 'C:\\Users\\user\\AppData\\Local\\Temp\\tmpzwukm71f\\src.win-amd64-3.9\\fortranfilemodule.c' not generated

I am able to change the Fortran source code if necessary.

Post the code in fortranfile.for