mō
ß-nDc           @   s   d  k  Z  d k l Z l Z l Z d e f d     YZ d e f d     YZ d d  d  Z e	 d j o0 d	 k
 l Z e d
 d  i   Z e e   n d  S(   N(   s   system_infos   dict_appends   NotFoundErrort   NetCDFNotFoundc           B   s   t  Z d  Z RS(   sę   
    NetCDF (http://www.unidata.ucar.edu/software/netcdf/) not found.
    Directories to search for the libraries can be specified in the
    numpy/distutils/site.cfg file (section [netcdf]) or by setting
    the NETCDF variable.
    (   t   __name__t
   __module__t   __doc__(    (    (    t   Lib/sandbox/netcdf/setup.pyR       s   t   netcdf_infoc           B   s,   t  Z d Z d Z e Z d   Z d   Z RS(   Nt   netcdft   NETCDFc         O   s*   t  i |  | |  d |  i i   d <d  S(   NR   t	   libraries(   t   system_infot   __init__t   selft   argst   kwt   cpt   defaults(   R   R   R   (    (    R   R
      s    c         C   s   |  i   } |  i   } d  } x, | D]$ } |  i | d  o | } Pq% q% W| d  j	 o t	 | d | g n |  i
 |   d  S(   Ns   netcdf.ht   include_dirs(   R   t   calc_libraries_infot   infot   get_include_dirsR   t   Nonet   inc_dirt   dt   combine_pathst   dict_appendt   set_info(   R   R   R   R   R   (    (    R   t	   calc_info   s     	(   R   R   t   sectiont   dir_env_varR    t   notfounderrorR
   R   (    (    (    R   R      s
   	t    c         C   sj   d k  l } | d |  |  } t   i   } | i d d d g d d g d | | i	 d	 d
 d  | S(   N(   s   ConfigurationR   t   _netcdft   sourcess	   _netcdf.ct   dependss	   _netcdf.ht
   extra_infos   demomodule.ct   Scientific_LICENSEt   README(
   t   numpy.distutils.misc_utilt   Configurationt   parent_packaget   top_patht   configR   t   get_infoR   t   add_extensiont   add_data_files(   R'   R(   R   R&   R)   (    (    R   t   configuration#   s    			
t   __main__(   s   setupR(   (   t   ost   numpy.distutils.system_infoR	   R   t   NotFoundErrorR    R   R   R-   R   t   numpy.distutils.coret   setupt   todictR)   (	   R   R)   R3   R1   R	   R   R    R-   R/   (    (    R   t   ?   s   	