3
5^S                 @   s   d dl mZmZ d dlZd dlZd dlZd dlmZ d dlm	Z	 ej j
doZej j
dZddd	Zed
krd dlmZ eed dS )    )divisionprint_functionN)join)platform_bitsWindowsMS c                sd  ddl m}m |d| |  fdd}tjd d dkrDd<g}n
d=d>d?g}|jd@  jd  jd g }tjdkrdgng }dg}t	rt
dkr|dg7 }nt	s|dg7 }dAg}g }	xVdBD ]N}
 jdj|
dj|
dj|
dj|
gddtd|
g|||d|
 g|d  qW xjdCD ]b}
|
d"kr.||	 n|} jdj|
dj|
dj|
gddtd|
g|||d|
 d$d%g|d  qW xPdDD ]H}
 j|
d(j|
g|||ddgd)|
 d*|
 g|d+  jd,j|
 qW d-d.d/d0d1g}x>dED ]6}
 j|
d(j|
g| ||ddg|d)|
 g|d4 qW  jd5  jd6d7d8d-d.gddd9g|||d:g|| d   jd;  S )FNr   )Configurationget_mathlibsrandomc                s6    j  } }tjdkr&|jddg | jj| d S )Nwin32Advapi32Kernel32)get_config_cmdsysplatformextend	libraries)ext	build_dir
config_cmdlibs)configr
    ]/home/brian/BIRCH/lib-linux-x86_64/python/lib64/python3.6/site-packages/numpy/random/setup.pygenerate_libraries   s    
z)configuration.<locals>.generate_libraries   aix_LARGE_FILES_FILE_OFFSET_BITS64_LARGEFILE_SOURCE1_LARGEFILE64_SOURCENPY_NO_DEPRECATED_APItests	_examplesntmz-U__GNUC_GNU_INLINE__    z
/arch:SSE2z-std=c99NP_RANDOM_LEGACYmt19937z_{0}z_{0}.czsrc/{0}/{0}.czsrc/{0}/{0}-jump.c.srcz_%s.pyx)sourcesinclude_dirsr   extra_compile_argsextra_link_argsdependsdefine_macrosphiloxpcg64sfc64z_bit_generator.pyxz_bit_generator.pxd_common_bit_generatorz{0}.cz%s.pyxz%s.pxd)r.   r   r0   r1   r/   r2   r3   z{0}.pxdz src/distributions/logfactorial.cz!src/distributions/distributions.cz%src/distributions/random_mvhg_count.cz)src/distributions/random_mvhg_marginals.cz)src/distributions/random_hypergeometric.c
_generator_bounded_integers)r.   r   r0   r/   r1   r2   r3   z_bounded_integers.pxdmtrandzmtrand.cz!src/legacy/legacy-distributions.cz
src/legacyz
mtrand.pyxz__init__.pxd)r   N)r   r    )r!   r"   )r#   r"   )r$   r   )r*   r"   )r+   )r4   r5   r6   )r7   r8   )r9   r:   )numpy.distutils.misc_utilr	   r
   r   r   appendadd_data_dirosnameis_msvcr   add_extensionformatr   add_data_files)parent_packagetop_pathr	   r   defsEXTRA_LINK_ARGSEXTRA_LIBRARIESEXTRA_COMPILE_ARGSLEGACY_DEFS
PCG64_DEFSgen_defs
other_srcsr   )r   r
   r   configuration   s    













rP   __main__)setup)rP   )r   N)
__future__r   r   r?   r   r   os.pathr   numpy.distutils.system_infor   
startswithpython_compilerrA   rP   __name__numpy.distutils.corerR   r   r   r   r   <module>   s   
v