f2py doesn't update .mod file #4775

fermat618 opened this Issue Jun 4, 2014 · 0 comments


None yet
2 participants


f2py -c foo.f90 -m bar
and a foo.mod exists. F2py doesn't update the .mod file, and what worse, it used the .mod file implicitly. If I changed something in the .f90 file, the .mod file will not be consistent with the .f90 file.

The .mod file is an intermediate file, as the same as .o, so if we don't use it explicitly on a command line, it should be regenerated, at least, it should not be used.

The module variable with parameter attribute will not be written in the .o file, but in the .mod file. I have just encounter an odd bug because f2py implicitly used inconsistent .mod file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment