Issues when using f2py module in python code

Viewed 634

I have a FORTRAN code that required the following compile command

gfortran -c interp.f -ffixed-format -ffix-line-length-none

I compiled the same using f2py module in python

from numpy import f2py

f2py.compile(open('interp.f').read(),modulename='interp',extra_flags='-ffixed-format -ffix-line-length-none',verbose=0)

It is unable to compile the module. It gives an error saying invalid file format '' at '-ffized-format'

Please help

1 Answers
Related