U
    O8c                      @   s`   d dl Z d dlZd dlmZ d dlmZ d dlmZ dddZe	dkr\d d	l
mZ eed
 dS )    N)join)platform_bits)lib_opts_if_msvc c                    s  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  d g }dg}tj	dkr|d dg}tjdkr|dg7 }dg}g }	dddg}
dddddg}dd  } j
d|d!g |gd"d# d$D ]h} jd%| d%| d&d'| d(| d&d'| d(| d)gd*d+td+|g||||
d%| d,g |d- qd.D ]t}|d/krz||	 n|} jd%| d%| d&d'| d(| d&gd*d+td+|g||||
d%| d,d0dg |d- qdd1D ]P} j|| d&g|||d*d+g|
| d,| d2g |d3  | d2 qd4D ]>} j|| d&g|d5g |d*d+g||
| d,g |d6 q4 d7 tj	dkrdd5gnd5g} jd8d9d:dgd*d+d;g||||
d<g || d-  j|
   d=  S )>Nr   )Configurationget_mathlibsrandomc                    s6      } }tjdkr&|ddg | j| d S )Nwin32ZAdvapi32Kernel32)Zget_config_cmdsysplatformextend	libraries)ext	build_dirZ
config_cmdZlibsconfigr    6/tmp/pip-unpacked-wheel-fd_gsd75/numpy/random/setup.pygenerate_libraries   s    
z)configuration.<locals>.generate_libraries   aix)Z_LARGE_FILESN)Z_FILE_OFFSET_BITSZ64)Z_LARGEFILE_SOURCE1)Z_LARGEFILE64_SOURCEr   )ZNPY_NO_DEPRECATED_APIr   testsz
tests/dataZ	_examplesZ	npyrandomntmz-U__GNUC_GNU_INLINE__cygwinz-Wl,--export-all-symbols)ZNP_RANDOM_LEGACYr   z__init__.pxdzc_distributions.pxdzbit_generator.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.cc                 S   s"   t | }| jjdkr|d |S )a   Add flags that depend on the compiler.

        We can't see which compiler we are using 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-std=c99)r   compilercompiler_typeappend)Z	build_cmdoptsr   r   r   lib_optsB   s    
zconfiguration.<locals>.lib_opts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.pyx)Z_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mtrandzmtrand.cz!src/legacy/legacy-distributions.cz
src/legacyz
mtrand.pyxz*.pyi)Znumpy.distutils.misc_utilr   r   r   r   r   Zadd_subpackageZadd_data_dirosnameZ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    











 

	

	


r3   __main__)setup)r3   )r   N)r.   r   os.pathr   Znumpy.distutils.system_infor   Znumpy.distutils.msvccompilerr   r3   __name__Znumpy.distutils.corer5   r   r   r   r   <module>   s   
 