3
eåU^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r„d dlmZ eed� dS )é    )ÚdivisionÚprint_functionN)Újoin)Úplatform_bitsÚWindowsZ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r€dgng }dg}t	r¢t
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 � qÀW 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|
ƒƒ �q„W d-d.d/d0d1g}x>dED ]6}
ˆ j|
d(j|
ƒg| ||ddg|d)|
 g|d4� �qäW ˆ 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Úwin32ZAdvapi32ÚKernel32)Zget_config_cmdÚsysÚplatformÚextendÚ	libraries)ÚextÚ	build_dirZ
config_cmdZlibs)Úconfigr	   © ú3/tmp/pip-build-fou5mlat/numpy/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ÚtestsZ	_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   r*   r+   r)   r,   r-   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   r*   r)   r+   r,   r-   z_bounded_integers.pxdZ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%   )r.   r/   r0   )r1   r2   )r3   r4   )Znumpy.distutils.misc_utilr   r	   r   r   ÚappendZadd_data_dirÚosÚnameÚis_msvcr   Úadd_extensionÚformatr   Zadd_data_files)Úparent_packageZtop_pathr   r   ZdefsZEXTRA_LINK_ARGSZEXTRA_LIBRARIESZEXTRA_COMPILE_ARGSZLEGACY_DEFSZ
PCG64_DEFSÚgenZ_defsZ
other_srcsr   )r   r	   r   Úconfiguration   s¢    













r=   Ú__main__)Úsetup)r=   )r   N)Ú
__future__r   r   r6   r   r   Úos.pathr   Znumpy.distutils.system_infor   Ú
startswithÚpython_compilerr8   r=   Ú__name__Znumpy.distutils.corer?   r   r   r   r   Ú<module>   s   
v