parameters: (source,
              modulename = 'untitled',
              extra_args = '',
              verbose = 1,
              source_fn = None
              )
return_statement: return s
docstring: Build extension module from processing source with f2py.
      Read the source of this function for more information.
docstring_summary: Build extension module from processing source with f2py.
      Read the source of this function for more information.
docstring_tokens: Build extension module from processing source with f2py . Read the source of this function for more information .
function: def compile(source,
              modulename = 'untitled',
              extra_args = '',
              verbose = 1,
              source_fn = None
              ):
      ''' Build extension module from processing source with f2py.
      Read the source of this function for more information.
      '''
      from numpy.distutils.exec_command import exec_command
      import tempfile
      if source_fn is None:
          f = tempfile.NamedTemporaryFile(suffix='.f')
      else:
          f = open(source_fn, 'w')
  
      try:
          f.write(source)
          f.flush()
  
          args = ' -c -m %s %s %s'%(modulename, f.name, extra_args)
          c = '%s -c "import numpy.f2py as f2py2e;f2py2e.main()" %s' % \
                  (sys.executable, args)
          s, o = exec_command(c)
      finally:
          f.close()
      return s
function_tokens: def compile ( source , modulename = 'untitled' , extra_args = '' , verbose = 1 , source_fn = None ) : from numpy . distutils . exec_command import exec_command import tempfile if source_fn is None : f = tempfile . NamedTemporaryFile ( suffix = '.f' ) else : f = open ( source_fn , 'w' ) try : f . write ( source ) f . flush ( ) args = ' -c -m %s %s %s' % ( modulename , f . name , extra_args ) c = '%s -c "import numpy.f2py as f2py2e;f2py2e.main()" %s' % ( sys . executable , args ) s , o = exec_command ( c ) finally : f . close ( ) return s