ó
¢áSc           @  s}  d  Z  d d l m Z m Z d Z d d l Z d d l Z d d l m Z d d l	 m
 Z
 d d l m Z d d l m Z d d	 l m Z d
 d d „ Z e d k rye d d
 ƒ Z e j ƒ  Z e d e ƒ e j ƒ  Z e j d  d k r$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/ d0 d1 d2 g e � n  d S(3   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

iÿÿÿÿ(   t   divisiont   print_functions4   $Id: setup.py,v 1.32 2005/01/30 17:22:14 pearu Exp $N(   t   newer(   t   log(   t   setup(   t   Configuration(   t   versiont    c         C  sy   t  d |  | ƒ } | j d ƒ | j d ƒ | j d d d ƒ | j ƒ  d „  } | j | ƒ t j d | j ƒ  ƒ | S(	   Nt   f2pyt   docst   testss   src/fortranobject.cs   src/fortranobject.hs   f2py.1c         S  sÒ   d t  j j t j ƒ d } | d d k r> | d  d } n  d t j k rj | d d k rj | d } n  t  j j |  | ƒ } t t | ƒ rÎ t	 j
 d | ƒ t | d	 ƒ } | j d
 t j ƒ | j ƒ  n  | S(   NR   i   iüÿÿÿs   .exes   .pyt   bdist_wininstiýÿÿÿs   Creating %st   ws™  #!%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":
    sys.stderr.write("G3 f2py support is not implemented, yet.\n")
    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:
    sys.stderr.write("Unknown mode: " + repr(mode) + "\n")
    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(    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/f2py/setup.pyt   generate_f2py_py-   s    s   F2PY Version %s(   R   t   add_data_dirt   add_data_filest   make_svn_version_pyt   add_scriptsR   R   t   get_version(   t   parent_packaget   top_patht   configR   (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/f2py/setup.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
   __future__R    R   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%   R"   t   printt   todict(    (    (    sJ   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/f2py/setup.pyt   <module>   sP   :
	