3
ßL]6  ã               @   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                s˜  ddl m}m‰ |d| |ƒ‰ ‡ ‡fdd„}tjd d… dkrDd?g}n
d@dAdBg}|jdCƒ ˆ 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 }n2t
sÞ|dg7 }tdd„ tjƒ D ƒƒ}|rÞ|dg7 }dDg}	g }
ˆ jdddg|g |||tdd d!ƒtddd"ƒd#g|d$� xRdED ]J}ˆ j|d&j|ƒd'j|ƒd(j|ƒgd)dtd|ƒg|||d*| g|d+� �q&W xddFD ]\}|d-k�r�||
 n|}ˆ j|d&j|ƒd'j|ƒgd)dtd|ƒg|||d*| d/dg|d+� �qzW x@dGD ]8}ˆ j|d&j|ƒg|||d)dgd*| d2| g|d3� �qàW d4d5d6g}x>dHD ]6}ˆ j|d&j|ƒg| ||d)dg|d*| g|d9� �q,W ˆ jd:d;d<d4d5gd)dd=g|||d>g||	 d+� ˆ S )INr   )Ú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_cmdÚlibs)Úconfigr	   © ú5/tmp/pip-install-q_7g0qgj/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
common.pxdzbit_generator.pxdÚntÚmz-U__GNUC_GNU_INLINE__é    z
/arch:SSE2z-std=c99c             S   s"   g | ]}dD ]}||j ƒ k‘qqS )Úx86Úi686Úi386Úamd64)r%   r&   r'   r(   )Úlower)Ú.0ÚkÚvalr   r   r   ú
<listcomp>4   s    z!configuration.<locals>.<listcomp>z-msse2ÚNP_RANDOM_LEGACYZentropyz	entropy.czsrc/entropy/entropy.cÚsrcZ
splitmix64z
splitmix.hz	entropy.hzentropy.pyx)Úsourcesr   Úextra_compile_argsÚextra_link_argsÚdependsÚdefine_macrosÚmt19937z{0}.czsrc/{0}/{0}.czsrc/{0}/{0}-jump.cÚ.z%s.pyx)r0   Úinclude_dirsr   r1   r2   r3   r4   ÚphiloxÚpcg64Úsfc64zbit_generator.pyxÚcommonÚbit_generatorz%s.pxd)r0   r   r1   r2   r7   r3   r4   z src/distributions/logfactorial.cz!src/distributions/distributions.cz)src/distributions/random_hypergeometric.cÚ	generatorÚbounded_integers)r0   r   r1   r7   r2   r3   r4   Zmtrandzmtrand.cz!src/legacy/legacy-distributions.cz
src/legacyz
mtrand.pyx)r   N)r   r   )r   r   )r   r   )r    r   )r.   r   )r5   )r8   r9   r:   )r;   r<   )r=   r>   )Znumpy.distutils.misc_utilr   r	   r   r   ÚappendZadd_data_dirZadd_data_filesÚosÚnameÚis_msvcr   ÚanyÚunameÚadd_extensionr   Úformat)Úparent_packageZtop_pathr   r   ZdefsZEXTRA_LINK_ARGSZEXTRA_LIBRARIESZEXTRA_COMPILE_ARGSZ
INTEL_LIKEZLEGACY_DEFSZ
PCG64_DEFSÚgenZ_defsZ
other_srcsr   )r   r	   r   Úconfiguration   s´    















rI   Ú__main__)Úsetup)rI   )r   N)Ú
__future__r   r   r@   r   r   Úos.pathr   Znumpy.distutils.system_infor   Ú
startswithÚpython_compilerrB   rI   Ú__name__Znumpy.distutils.corerK   r   r   r   r   Ú<module>   s   
 