Ñò
,ÏÐKc            @   sg  d  Z  d Z d d k Z d d k Z d d k l Z d d k l Z d d k l	 Z	 d d k
 l Z d d k l Z d	 d d
 „ Z e d j oÓ e d d	 ƒ Z e i ƒ  Z d Ge GHe i ƒ  Z e i d  d j o9 d e d <d d d d d d d d d d d g e d <n e	 d e d d  d! d" d# d$ d% d" d& d$ d' d( d) d* d+ d, d- d. d/ d0 d1 g e  n d S(2   s  
setup.py for installing F2PY

Usage:
   python setup.py install

Copyright 2001-2005 Pearu Peterson all rights reserved,
Pearu Peterson <pearu@cens.ioc.ee>
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
s4   $Id: setup.py,v 1.32 2005/01/30 17:22:14 pearu Exp $iÿÿÿÿN(   t   newer(   t   log(   t   setup(   t   Configuration(   t   versiont    c         C   sV   t  d |  | ƒ } | i d ƒ | i d d d ƒ | i ƒ  d „  } | i | ƒ | S(   Nt   f2pyt   docss   src/fortranobject.cs   src/fortranobject.hs   f2py.1c         S   så   d t  i i t i ƒ d } | d d j o | d  d } n d t i j o | d d j o | d } n t  i i |  | ƒ } t t | ƒ oM t	 i
 d | ƒ t | d	 ƒ } | i d
 t  i i t i ƒ ƒ | i ƒ  n | S(   NR   i   iüÿÿÿs   .exes   .pyt   bdist_wininstiýÿÿÿs   Creating %st   wsœ  #!/usr/bin/env %s
# See http://cens.ioc.ee/projects/f2py2e/
import os, sys
for mode in ["g3-numpy", "2e-numeric", "2e-numarray", "2e-numpy"]:
    try:
        i=sys.argv.index("--"+mode)
        del sys.argv[i]
        break
    except ValueError: pass
os.environ["NO_SCIPY_IMPORT"]="f2py"
if mode=="g3-numpy":
    print >> sys.stderr, "G3 f2py support is not implemented, yet."
    sys.exit(1)
elif mode=="2e-numeric":
    from f2py2e import main
elif mode=="2e-numarray":
    sys.argv.append("-DNUMARRAY")
    from f2py2e import main
elif mode=="2e-numpy":
    from numpy.f2py import main
else:
    print >> sys.stderr, "Unknown mode:",`mode`
    sys.exit(1)
main()
(   t   ost   patht   basenamet   syst
   executablet   argvt   joinR    t   __file__R   t   infot   opent   writet   close(   t	   build_dirt   f2py_exet   targett   f(    (    sE   P:\graphics\Tools\Python26\Lib\site-packages\numpy\f2py\setupscons.pyt   generate_f2py_py*   s    !(   R   t   add_data_dirt   add_data_filest   make_svn_version_pyt   add_scripts(   t   parent_packaget   top_patht   configR   (    (    sE   P:\graphics\Tools\Python26\Lib\site-packages\numpy\f2py\setupscons.pyt   configuration   s    	
	't   __main__R    s   F2PY Versioni   s   2.3s;   http://cens.ioc.ee/projects/f2py2e/2.x/F2PY-2-latest.tar.gzt   download_urls+   Development Status :: 5 - Production/Stables   Intended Audience :: Developerss%   Intended Audience :: Science/Researchs(   License :: OSI Approved :: NumPy Licenses   Natural Language :: Englishs"   Operating System :: OS Independents   Programming Language :: Cs   Programming Language :: Fortrans   Programming Language :: Pythons   Topic :: Scientific/Engineerings0   Topic :: Software Development :: Code Generatorst   classifiersR   t   descriptions,   F2PY - Fortran to Python Interface Generatont   authors   Pearu Petersont   author_emails   pearu@cens.ioc.eet
   maintainert   maintainer_emailt   licenset   BSDt	   platformss%   Unix, Windows (mingw|cygwin), Mac OSXt   long_descriptionsM  The 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.t   urls#   http://cens.ioc.ee/projects/f2py2e/t   keywordst   FortranR   (   t   __doc__t   __version__R
   R   t   distutils.dep_utilR    t   numpy.distutilsR   t   numpy.distutils.coreR   t   numpy.distutils.misc_utilR   R   t   NoneR"   t   __name__R!   t   get_versiont   todict(    (    (    sE   P:\graphics\Tools\Python26\Lib\site-packages\numpy\f2py\setupscons.pyt   <module>   sN   7	
	