B
    ˜us^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 ¡  
d¡oZe ¡  
d¡Zddd	„Zed
kr„d 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}| d¡ ˆ  d¡ ˆ  d¡ g }tjdkr€dgng }dg}t	r¢t
dkr¢|dg7 }nt	s°|dg7 }dg}g }	xVdD ]N}
ˆ jd |
¡d |
¡d |
¡d |
¡gddtd|
ƒg|||d|
 g|d qÀW xjdD ]b}
|
d kr.||	 n|}ˆ jd |
¡d |
¡d |
¡gddtd|
ƒg|||d|
 d!d"g|d qW xPd#D ]H}
ˆ j|
d$ |
¡g|||ddgd%|
 d&|
 g|d' ˆ  d( |
¡¡ q„W d)d*d+d,d-g}x>d.D ]6}
ˆ j|
d$ |
¡g| ||ddg|d%|
 g|d/ qäW ˆ  d0¡ ˆ jd1d2d3d)d*gddd4g|||d5g|| d ˆ  d6¡ ˆ S )7Nr   )ÚConfigurationÚget_mathlibsÚrandomc                s6   ˆ   ¡ }ˆƒ }tjdkr&| ddg¡ | j |¡ d S )NÚwin32ÚAdvapi32ÚKernel32)Úget_config_cmdÚsysÚplatformÚextendÚ	libraries)ÚextÚ	build_dirÚ
config_cmdÚlibs)Úconfigr
   © ú^/home/fristb/BIRCH/lib-linux-x86_64/python/lib64/python3.7/site-packages/numpy/random/setup.pyÚgenerate_libraries   s    
z)configuration.<locals>.generate_librariesé   Úaix)Ú_LARGE_FILESN)Ú_FILE_OFFSET_BITSÚ64)Ú_LARGEFILE_SOURCEÚ1)Ú_LARGEFILE64_SOURCEr"   )ÚNPY_NO_DEPRECATED_APIr   ÚtestsÚ	_examplesÚntÚmz-U__GNUC_GNU_INLINE__é    z
/arch:SSE2z-std=c99)ÚNP_RANDOM_LEGACYr"   )Ú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Úsfc64r5   z_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)Ú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