o
    $eÿ  ã                   @   s|   d dl Z d dlZd dlZd dlmZ d dlmZ e ¡  d¡o%e ¡  d¡Z	ddd„Z
ed	kr<d d
lmZ ee
d dS dS )é    N)Újoin)Úplatform_bitsÚWindowsZMSÚ c                    sò  ddl m}m‰ |d| |ƒ‰ ‡ ‡fdd„}tjd d… dkr"dg}ng d	¢}| d
¡ ˆ  d¡ ˆ  d¡ ˆ  d¡ g }dg}tj	dkrI| d¡ dg}t
rXtdkrX|dg7 }nt
s_|dg7 }tjdkri|dg7 }dg}g }	g d¢}
g d¢}dd„ }ˆ jd|dg |gdœd dD ]4}ˆ jd |› d |› d!d"|› d#|› d!d"|› d#|› d$gd%d&td&|ƒg||||
d |› d'g |d( q‰d)D ]8}|d*krÊ||	 n|}ˆ jd |› d |› d!d"|› d#|› d!gd%d&td&|ƒg||||
d |› d'd+d,g |d( qÀd-D ]'}ˆ j||› d!g|||d%d&g|
|› d'|› d.g |d/ ˆ  |› d.¡ qûd0D ]}ˆ j||› d!g|d1g |d%d&g||
|› d'g |d2 q%ˆ  d3¡ tj	dkrTdd1gnd1g}ˆ jd4g d5¢g d6¢||||
d7g || d( ˆ j|
Ž  ˆ  d8¡ ˆ S )9Nr   )ÚConfigurationÚget_mathlibsÚrandomc                    s6   ˆ   ¡ }ˆƒ }tjdkr| ddg¡ | j |¡ d S )NÚwin32ZAdvapi32ZKernel32)Zget_config_cmdÚsysÚplatformÚextendÚ	libraries)ÚextÚ	build_dirZ
config_cmdZlibs©Úconfigr   © úBD:\Projects\ConvertPro\env\Lib\site-packages\numpy/random/setup.pyÚgenerate_libraries   s   
z)configuration.<locals>.generate_librariesé   Úaix)Z_LARGE_FILESN))Z_FILE_OFFSET_BITSÚ64)Z_LARGEFILE_SOURCEÚ1)Z_LARGEFILE64_SOURCEr   )ZNPY_NO_DEPRECATED_APIr   Útestsz
tests/dataZ	_examplesZ	npyrandomÚntÚmz-U__GNUC_GNU_INLINE__é    z
/arch:SSE2z-std=c99Úcygwinz-Wl,--export-all-symbols)ZNP_RANDOM_LEGACYr   )z__init__.pxdzc_distributions.pxdúbit_generator.pxd)z src/distributions/logfactorial.cú!src/distributions/distributions.cz%src/distributions/random_mvhg_count.cz)src/distributions/random_mvhg_marginals.cz)src/distributions/random_hypergeometric.cc                 S   s   | j jdkr	dgS g S )zð Add flag if we are using MSVC compiler

        We can't see this in our scope, because we have not initialized the
        distutils build command, so use this deferred calculation to run when
        we are building the library.
        Zmsvcz/GL-)ÚcompilerZcompiler_type)Z	build_cmdr   r   r   Ú
gl_if_msvcL   s   z!configuration.<locals>.gl_if_msvcÚlib)Úinclude_dirsZextra_compiler_args)ÚsourcesZinstall_dirZ
build_info)Zmt19937Ú_z.czsrc/ú/z-jump.cÚ.Úsrcz.pyx)r$   r#   r   Úextra_compile_argsÚextra_link_argsÚdependsÚdefine_macros)ZphiloxÚpcg64Zsfc64r-   zbit_generator.pyxr   )Ú_commonZbit_generatorz.pxd)r$   r   r)   r*   r#   r+   r,   )Z
_generatorZ_bounded_integersZnpymath)r$   r   r)   r#   r*   r+   r,   z_bounded_integers.pxdZmtrand)zmtrand.cz!src/legacy/legacy-distributions.cr   )r'   r(   z
src/legacyz
mtrand.pyxz*.pyi)Znumpy.distutils.misc_utilr   r   r
   r   ÚappendZadd_subpackageZadd_data_dirÚosÚnameÚis_msvcr   Zadd_installed_libraryÚadd_extensionr   Zadd_data_files)Úparent_packageZtop_pathr   r   ZdefsZEXTRA_LINK_ARGSZEXTRA_LIBRARIESZEXTRA_COMPILE_ARGSZLEGACY_DEFSZ
PCG64_DEFSr+   Znpyrandom_sourcesr!   ÚgenZ_defsZmtrand_libsr   r   r   Úconfiguration   sÀ   









þý
þ÷
ÿÿ÷
ù	

ù
	ö

r6   Ú__main__)Úsetup)r6   )r   N)r0   r   r
   Zos.pathr   Znumpy.distutils.system_infor   Ú
startswithÚpython_compilerr2   r6   Ú__name__Znumpy.distutils.corer8   r   r   r   r   Ú<module>   s    ÿ
 ý