title: Compiling module with f2py
body: <p>I want to compile on a server a module using f2py with the following command :</p>
  
  <blockquote>
    <p>f2py -c utils.f90 parameters.f90 helmholtz.f90 calc.f90 qgflux.f90
    qgstep.f90 interface.f90 -m py_mod</p>
  </blockquote>
  
  <p>but the f2py command is not available on that server. Hence, I tried to compile my module within python with the following code :</p>
  
  <pre><code>import numpy.f2py
  r = numpy.f2py.run_main(['-m','py_mod','utils.f90','parameters.f90','helmholtz.f90','calc.f90','qgflux.f90','qgstep.f90','interface.f90'])
  </code></pre>
  
  <p>Looks like everything goes fines, at the end I get :</p>
  
  <blockquote>
    <p>Wrote C/API module "py_mod" to file "./py_modmodule.c"
        Fortran 90 wrappers are saved to "./py_mod-f2pywrappers2.f90"</p>
  </blockquote>
  
  <p>Now the command "print(r)" returns :</p>
  
  <blockquote>
    <p>{'py_mod': {'csrc': ['./py_modmodule.c',
    '/usr/lib64/python3.6/site-packages/numpy/f2py/src/fortranobject.c'],
    'fsrc': ['./py_mod-f2pywrappers2.f90'], 'h':
    ['/usr/lib64/python3.6/site-packages/numpy/f2py/src/fortranobject.h']}}</p>
  </blockquote>
  
  <p>But I do not know what to do next to get the module py_mod, can you please help me ?</p>
  
  <p>Regards</p>