ó 2ÄČ[c@ sddZddlmZmZdZddlZddlZddlmZddl m Z ddl m Z ddl mZdd lmZd „Zd dd „Zed kr`edd ƒZedeƒejƒZded Permission to use, modify, and distribute this software is given under the terms of the NumPy License. NO WARRANTY IS EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. $Revision: 1.32 $ $Date: 2005/01/30 17:22:14 $ Pearu Peterson i˙˙˙˙(tdivisiontprint_functions4$Id: setup.py,v 1.32 2005/01/30 17:22:14 pearu Exp $N(tnewer(tlog(tsetup(t Configuration(tversioncC s'tdƒjtjƒrdSdtjS(s× Return shebang line for f2py script If we are building a binary distribution format, then the shebang line should be ``#!python`` rather than ``#!`` followed by the contents of ``sys.executable``. t bdist_wheelt bdist_eggt bdist_wininstt bdist_rpms#!pythons#!(RRR R (tsett intersectiontsystargvt executable(((s//tmp/pip-build-fiC0ax/numpy/numpy/f2py/setup.pyt_get_f2py_shebang!stcC sitd||ƒ}|jdƒ|jddƒ|jƒd„}|j|ƒtjd|jƒƒ|S(Ntf2pyttestsssrc/fortranobject.cssrc/fortranobject.hcS sdtjjtjƒd}|ddkr>|d d}ndtjkrj|ddkrj|d}ntjj||ƒ}tt|ƒrt j d|ƒt |d ƒ}|j t ƒd ƒtjjtjjtƒd ƒ}t |ƒ}|j |jƒƒWdQX|jƒn|S( NRiiü˙˙˙s.exes.pyR iý˙˙˙s Creating %stws s __main__.py(tostpathtbasenameR RRtjoinRt__file__RtinfotopentwriteRtdirnametreadtclose(t build_dirtf2py_exettargettftmainloctmf((s//tmp/pip-build-fiC0ax/numpy/numpy/f2py/setup.pytgenerate_f2py_py9s ! sF2PY Version %s(Rt add_data_dirtadd_data_filestmake_svn_version_pyt add_scriptsRRt get_version(tparent_packagettop_pathtconfigR&((s//tmp/pip-build-fiC0ax/numpy/numpy/f2py/setup.pyt configuration.s     t__main__R-s F2PY Versions;http://cens.ioc.ee/projects/f2py2e/2.x/F2PY-2-latest.tar.gzt download_urls+Development Status :: 5 - Production/StablesIntended Audience :: Developerss%Intended Audience :: Science/Researchs(License :: OSI Approved :: NumPy LicensesNatural Language :: Englishs"Operating System :: OS IndependentsProgramming Language :: CsProgramming Language :: FortransProgramming Language :: PythonsTopic :: Scientific/Engineerings0Topic :: Software Development :: Code Generatorst classifiersRt descriptions,F2PY - Fortran to Python Interface GeneratortauthorsPearu Petersont author_emailspearu@cens.ioc.eet maintainertmaintainer_emailtlicensetBSDt platformss%Unix, Windows (mingw|cygwin), Mac OSXtlong_descriptionsMThe Fortran to Python Interface Generator, or F2PY for short, is a command line tool (f2py) for generating Python C/API modules for wrapping Fortran 77/90/95 subroutines, accessing common blocks from Python, and calling Python functions from Fortran (call-backs). Interfacing subroutines/data from Fortran 90/95 modules is supported.turls#http://cens.ioc.ee/projects/f2py2e/tkeywordstFortranR(t__doc__t __future__RRt __version__RR tdistutils.dep_utilRtnumpy.distutilsRtnumpy.distutils.coreRtnumpy.distutils.misc_utilRRRtNoneR/t__name__R.tprintttodict(((s//tmp/pip-build-fiC0ax/numpy/numpy/f2py/setup.pytsN   "