ó
¢áSc           @  s»   d  d l  m Z m Z d  d l m Z m Z m Z d  d l Z d  d l Z d  d l	 m
 Z
 d  d l m Z d „  Z d d d „ Z d	 „  Z e d
 k r· d  d l m Z e d e ƒ n  d S(   iÿÿÿÿ(   t   divisiont   print_function(   t   joint   splitt   dirnameN(   t   newer(   t   get_build_versionc          C  s#   t  ƒ  }  |  r |  d k r t St S(   Ni   (   t   get_msvc_build_versiont   Truet   False(   t   msver(    (    sL   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/random/setup.pyt   needs_mingw_ftime_workaround	   s    	t    c           s  d d l  m } m ‰ | d |  | ƒ ‰  ‡  ‡ f d †  } d d d g } t ƒ  rb | j d ƒ n  g  } ˆ  j d d g  d d d d g D] } t d | ƒ ^ q‡ | g d | d t d d ƒ t d d ƒ t d d ƒ g d | ƒˆ  j d t d d ƒ f ƒ ˆ  j	 d ƒ ˆ  S(   Niÿÿÿÿ(   t   Configurationt   get_mathlibst   randomc           sQ   ˆ  j  ƒ  } ˆ ƒ  } t ƒ  } | j | ƒ r= | j d ƒ n  |  j j | ƒ d  S(   Nt   Advapi32(   t   get_config_cmdt   testcode_wincryptt   try_runt   appendt	   librariest   extendt   None(   t   extt	   build_dirt
   config_cmdt   libst   tc(   t   configR   (    sL   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/random/setup.pyt   generate_libraries   s    		t   _FILE_OFFSET_BITSt   64t   _LARGEFILE_SOURCEt   1t   _LARGEFILE64_SOURCEt   NPY_NEEDS_MINGW_TIME_WORKAROUNDt   mtrandt   sourcess   mtrand.cs   randomkit.cs   initarray.cs   distributions.cR   t   dependss   *.hs   *.pyxs   *.pxit   define_macrost   .s   randomkit.ht   tests(   s   _FILE_OFFSET_BITSs   64(   s   _LARGEFILE_SOURCER"   (   s   _LARGEFILE64_SOURCER"   (   s   NPY_NEEDS_MINGW_TIME_WORKAROUNDN(
   t   numpy.distutils.misc_utilR   R   R   R   R   t   add_extensionR   t   add_data_filest   add_data_dir(   t   parent_packaget   top_pathR   R   t   defsR   t   x(    (   R   R   sL   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/random/setup.pyt   configuration   s*    			)c           C  s   d S(   Ns„   /* check to see if _WIN32 is defined */
int main(int argc, char *argv[])
{
#ifdef _WIN32
    return 0;
#else
    return 1;
#endif
}
(    (    (    (    sL   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/random/setup.pyR   <   s    t   __main__(   t   setupR3   (   t
   __future__R    R   t   os.pathR   R   R   t   ost   syst   distutils.dep_utilR   t   distutils.msvccompilerR   R   R   R   R3   R   t   __name__t   numpy.distutils.coreR5   (    (    (    sL   /opt/xtal/ccp4-6.5-linux32/lib/python2.7/site-packages/numpy/random/setup.pyt   <module>   s   	(	