ó 2ÄČ[c@`sšdZddlmZmZmZdddgZddlZddlmZdd lm Z dd lm Z ej Z ej Z d d e dd d„ZddlmZeeƒZ[dS(s(Fortran to Python Interface Generator. i(tdivisiontabsolute_importtprint_functiontrun_maintcompilet f2py_testingNi(tf2py2e(R(tdiagnosetuntitledts.fc C`sŅddlm}ddl}|dkr=|jd|ƒ}nt|dƒ}zs|j|ƒ|jƒdj||j |ƒ} d} | jt j | ƒ} || ƒ\} } |rūt | ƒnWd|j ƒX| S(sN Build extension module from processing source with f2py. Parameters ---------- source : str Fortran source of module / subroutine to compile modulename : str, optional The name of the compiled python module extra_args : str, optional Additional parameters passed to f2py verbose : bool, optional Print f2py output to screen source_fn : str, optional Name of the file where the fortran source is written. The default is to use a temporary file with the extension provided by the `extension` parameter extension : {'.f', '.f90'}, optional Filename extension if `source_fn` is not provided. The extension tells which fortran standard is used. The default is `.f`, which implies F77 standard. .. versionadded:: 1.11.0 i(t exec_commandNtsuffixtws -c -m {} {} {}s4{} -c "import numpy.f2py as f2py2e;f2py2e.main()" {}(tnumpy.distutils.exec_commandR ttempfiletNonetNamedTemporaryFiletopentwritetflushtformattnametsyst executabletprinttclose( tsourcet modulenamet extra_argstverboset source_fnt extensionR Rtftargstctstatustoutput((s2/tmp/pip-build-fiC0ax/numpy/numpy/f2py/__init__.pyRs      (t PytestTester(t__doc__t __future__RRRt__all__RR RRRRtmaintTrueRRt#numpy.testing._private.pytesttesterR%t__name__ttest(((s2/tmp/pip-build-fiC0ax/numpy/numpy/f2py/__init__.pyts     0