Uc@sdddgZddlZddlZddlZddlmZddlZejZejZddl Z ddddd Z dS( trun_maintcompilet f2py_testingiN(t__doc__tuntitledtic Csddlm}ddl}|dkrGtjj|jd}n|}t|d}|j ||j d|||f} dt j | f} || \} } |dkrytj |Wqtk rqXn| S(sy Build extension module from processing source with f2py. Read the source of this function for more information. i(t exec_commandNs.ftws -c -m %s %s %ss4%s -c "import numpy.f2py as f2py2e;f2py2e.main()" %s(tnumpy.distutils.exec_commandRttempfiletNonetostpathtjointmktemptopentwritetclosetsyst executabletremovetOSError( tsourcet modulenamet extra_argstverboset source_fnRR tfnametftargstctsto((s7/usr/lib/python2.7/site-packages/numpy/f2py/__init__.pyRs"       ( t__all__R RtcommandstinfoRtf2py2eRtmainRR R(((s7/usr/lib/python2.7/site-packages/numpy/f2py/__init__.pyts