ó
ž9C]c           @` s™   d  d l  m Z m Z m Z d  d l Z d  d l m Z m Z m Z m	 Z	 d  d l
 m Z d d d „ Z e d k r• d  d l m Z e d	 e ƒ n  d S(
   i    (   t   divisiont   print_functiont   absolute_importN(   t   joint   existst   abspatht   dirname(   t   getcwdt    c         C` s‰  d d l  m } d d l m } | d |  | ƒ } t t ƒ } t | d ƒ } | d ƒ } | j d d g ƒ } y, d d	 l m	 }	 t | d
 ƒ g }
 t
 } WnX t k
 rô } t } t | d ƒ g }
 t |
 d ƒ sõ t t | ƒ d d ƒ ‚ qõ n X| j d d d t | d ƒ g |
 d t | d ƒ t | d ƒ g d | g d | d d g ƒ | j d ƒ | r…|	 | j d | | g ƒ| _ n  | S(   Ni    (   t   Configuration(   t   get_infot   mkl_fftt   srct   mklt	   librariest   mkl_rt(   t	   cythonizes   _pydfti.pyxs	   _pydfti.cs   . s0   Cython is required to build the initial .c file.t   namet   _pydftit   sourcess   mklfft.c.srct   dependss   mklfft.hs   multi_iter.ht   include_dirst   extra_compile_argss   -DNDEBUGt   testst   include_path(   t   numpy.distutils.misc_utilR	   t   numpy.distutils.system_infoR
   R   t   __file__R   t   gett   Cython.BuildR   t   Truet   ImportErrort   FalseR   t
   ValueErrort   strt   add_extensiont   add_data_dirt   ext_modules(   t   parent_packaget   top_pathR	   R
   t   configt   pdirt   wdirt   mkl_infot   libsR   R   t   have_cythont   e(    (    s,   lib/python2.7/site-packages/mkl_fft/setup.pyt   configuration   s<    
		
!t   __main__(   t   setupR/   (   t
   __future__R    R   R   t   syst   os.pathR   R   R   R   t   osR   t   NoneR/   t   __name__t   numpy.distutils.coreR1   (    (    (    s,   lib/python2.7/site-packages/mkl_fft/setup.pyt   <module>   s   "-