ó
Ê½÷Xc           @` s­   d  d l  m Z m Z m Z d  d l m Z m Z d  d l Z d d d „ Z	 e
 d k r© d  d l m Z e d d	 d
 d d d d d d d d d e	 d d ƒ j ƒ   n  d S(   i    (   t   divisiont   print_functiont   absolute_import(   t   joint   dirnameNt    c         ` s„  d d l  m } m } d d l  m } d d l m } d d l m } | d |  | ƒ ‰  ˆ  j d ƒ t t	 j	 t
 t t ƒ d d d	 ƒ ƒ ƒ } | ƒ  g } | d | d
 d ƒ k rÍ | j | d
 d ƒ ƒ n  | j | ƒ  ƒ t | d ƒ ƒ }	 |	 j d g  ƒ j | ƒ ‡  f d †  }
 ˆ  j d d d g | |
 g |	 d d d d d d d d d g	 } g  | D] } t
 d d | ƒ ^ qc} d d d d d d  d! d" g } g  | D] } t
 d d | ƒ ^ q¦} d# g | | } ˆ  j d d d# g | d$ | d | t
 d d ƒ g ƒˆ  j d% d t
 d d& ƒ g d$ t
 d d' ƒ g d | ƒ  g d( | d) ƒ ƒˆ  j d* d d+ g ƒˆ  j d, d d- g ƒˆ  S(.   Ni    (   t   Configurationt   get_numpy_include_dirs(   t   get_info(   t   get_python_inct   spatialt   testst   qhullt   srcs   *.ct   plat_specifici   t
   lapack_optt   include_dirsc      	   ` sž   ˆ  j  ƒ  } g  } | j d d t d t ƒr= | j d	 ƒ n  t t t ƒ d ƒ } t | d ƒ 7 } x- | D]% \ } } | j d j	 | | ƒ ƒ qk WWd  QXd  S(
   Nt   open_memstreamt   declt   callt   HAVE_OPEN_MEMSTREAMt   1s   qhull_misc_config.ht   ws   #define {0} {1}
(   R   R   (
   t   get_config_cmdt
   check_funct   Truet   appendR   R   t   __file__t   opent   writet   format(   t   extt	   build_dirt
   config_cmdt   definest   targett   ft   namet   value(   t   config(    s2   /tmp/pip-build-7oUkmx/scipy/scipy/spatial/setup.pyt   get_qhull_misc_config   s    t   sourcess   qhull.cs	   query.cxxs	   build.cxxs   globals.cxxs   cpp_exc.cxxs   query_pairs.cxxs   count_neighbors.cxxs   query_ball_point.cxxs   query_ball_tree.cxxs   sparse_distances.cxxt   ckdtrees   ckdtree_decl.hs	   cpp_exc.hs   ckdtree_methods.hs   cpp_utils.hs   rectangle.hs
   distance.hs   distance_box.hs   ordered_pair.hs   ckdtree.cxxt   dependst   _distance_wraps   distance_wrap.cs   distance_impl.ht
   extra_infot   npymatht   _voronois
   _voronoi.ct
   _hausdorffs   _hausdorff.c(   t   numpy.distutils.misc_utilR   R   R   t   numpy.distutils.system_infot   distutils.sysconfigR	   t   add_data_dirt   listt   globR   R   R   R   t   dictt
   setdefaultt   extendt   add_extension(   t   parent_packaget   top_pathR   R   t   get_misc_infot   get_sys_infoR	   t	   qhull_srct   inc_dirst   cfgR(   t   ckdtree_srct   xt   ckdtree_headerst   ckdtree_dep(    (   R'   s2   /tmp/pip-build-7oUkmx/scipy/scipy/spatial/setup.pyt   configuration	   sh    	%	%

t   __main__(   t   setupt
   maintainers   SciPy Developerst   authors   Anne Archibaldt   maintainer_emails   scipy-dev@scipy.orgt   descriptions&   Spatial algorithms and data structurest   urls   https://www.scipy.orgt   licenses   SciPy License (BSD Style)R<   (   t
   __future__R    R   R   t   os.pathR   R   R6   t   NoneRF   t   __name__t   numpy.distutils.coreRH   t   todict(    (    (    s2   /tmp/pip-build-7oUkmx/scipy/scipy/spatial/setup.pyt   <module>   s   Q